Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Delete ArangoDeployment #224

Closed
cbluth opened this issue Jul 25, 2018 · 3 comments
Closed

How to Delete ArangoDeployment #224

cbluth opened this issue Jul 25, 2018 · 3 comments

Comments

@cbluth
Copy link

cbluth commented Jul 25, 2018

Please see this:

cbluth@dl7490:~/x/arangodb$ kubectl -n platform get ArangoDeployment
NAME       AGE
arangodb   7d
cbluth@dl7490:~/x/arangodb$ kubectl -n platform delete ArangoDeployment arangodb
arangodeployment.database.arangodb.com "arangodb" deleted
cbluth@dl7490:~/x/arangodb$ kubectl -n platform get ArangoDeployment
NAME       AGE
arangodb   7d
cbluth@dl7490:~/x/arangodb$ kubectl -n platform delete ArangoDeployment arangodb --grace-period 0 --force
warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely.
arangodeployment.database.arangodb.com "arangodb" deleted
cbluth@dl7490:~/x/arangodb$ kubectl -n platform get ArangoDeployment
NAME       AGE
arangodb   7d
cbluth@dl7490:~/x/arangodb$

How can I remove the ArangoDeployment?

@cbluth
Copy link
Author

cbluth commented Jul 25, 2018

I was able to delete these by patching the metadata.finalizers value:

kubectl -n platform get pod | grep 'agnt\|prmr' | awk '{print $1}' | xargs -ri kubectl -n platform patch pod {} -p '{"metadata":{"finalizers":[]}}' --type=merge

Taken from this post here: kubernetes/kubernetes#60538 (comment)

@cbluth cbluth closed this as completed Jul 25, 2018
@ewoutp
Copy link
Contributor

ewoutp commented Aug 6, 2018

Removing the finalizers will work, but is not "supposed" to be needed.
What the ArangoDB operator still running when you deleted the deployment?
If possible, it would be great that have the logs of the operator and the output of kubectl get pod, kubectl get service, kubectl get pvc, kubectl get pv

@ewoutp
Copy link
Contributor

ewoutp commented Aug 6, 2018

We've seen this problem before but so far we've not been able to determine the circumstances under which is happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants