Deleting the deployment from UI doesn't delete the replica sets and pods #40014
Description
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):
No
What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):
is:issue UI delete ,
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Kubernetes version (use kubectl version
):
Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.1", GitCommit:"82450d03cb057bab0950214ef122b67c83fb11df", GitTreeState:"clean", BuildDate:"2016-12-14T00:57:05Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.6+coreos.0", GitCommit:"f6f0055b8e503cbe5fb7b6f1a2ee37d0f160c1cd", GitTreeState:"clean", BuildDate:"2016-08-29T17:01:01Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}
Environment:
- Cloud provider or hardware configuration: AWS
- OS (e.g. from /etc/os-release): coreos 1235.6.0
- Kernel (e.g.
uname -a
): 4.7.3-coreos-r2 - Install tools: CoreOS
- Others: 2 node cluster for testing.
What happened:
Created a sample deployment using kubectl create -f ngnix.yml
It created a deployment, replicasets and pods.
Deleted the same deployment from kubectl and all three deployment, replicasets and pods got deleted.
Re-created the same deployment once again. But this time deleted the deployment from UI ( started using kubectl proxy ).
But it only deleted the deployment and the replicasets and pods are still there.
What you expected to happen:
The UI and the kubectl should behave uniformly. If I delete the deployment from UI the associated replicaset and pod should get deleted.
How to reproduce it (as minimally and precisely as possible):
- Create deployment -
kubectl create -f ngnix.yml
- Get deployment,rs,pods -
kubectl get deploy,rs,pods
- Confirm its created from above output.
- Delete the deployment -
kubectl delete deploy/my-nginx
- Confirm all 3(deploy,rs,pods are deleted) -
kubectl get deploy,rs,pods
- Re-Create the deployement -
kubectl create -f ngnix.yml
- Start the proxy - 'kubectl proxy'
- Hit the UI on 127.0.0.1:8001 and delete the deployment.
- Check the deployment,rs.pods
kubectl get deploy,rs,pods
I see the rs and pods still there.
Anything else do we need to know:
Attached is the the deployment yml file I used.
nginx.txt