-
Notifications
You must be signed in to change notification settings - Fork 192
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
Delete deployment and associated pods? #148
Comments
Sorry for the delay .. did you resolve this? Did you try: deploy.ns('fortesting').deploy('echoserver').delete({ qs: { PropagationPolicy: false }}, print); or deploy.ns('fortesting').deploy.delete({ name: 'echoserver' qs: { PropagationPolicy: false }}, print); |
Somewhat confusingly, the Concepts docs say you can send a body in to the DELETE endpoint as well: https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/#setting-the-cascading-deletion-policy $ kubectl proxy --port=8080 &
$ curl -X DELETE localhost:8080/apis/extensions/v1beta1/namespaces/default/replicasets/my-repset \
-d '{"kind":"DeleteOptions","apiVersion":"v1","propagationPolicy":"Foreground"}' \
-H "Content-Type: application/json" which IIRC you can do with this library something like // warning: untested code
deploy.ns('foresting').deploy('echoserver').delete({ body: { kind: 'DeleteOptions', apiVersion: 'v1', propagationPolicy: 'Foreground' } }) although I'm not 100% sure on that, since we don't do that method anymore. With our version of Kubernetes (1.8), the Our solution was to trace
|
Has someone tried this out yet? I've made an attempt though it was unsuccessful. Also, the fact that kubectl does it like described above is kind of disturbing. I'd assume a delete request would be sufficient. |
Hi,
Output:
I can delete the deploy with 'deploy.ns('fortesting').deploy('echoserver').delete(print);` but this command cannot delete the pods, which I've created through deploy.
I've found the issue #62 , the option orphanDependents is depricated ([https://kubernetes.io/docs/api-reference/v1.6/#deployment-v1beta1-extensions](doc api)) it's now PropagationPolicy.
The text was updated successfully, but these errors were encountered: