Skip to content

Deleting the deployment from UI doesn't delete the replica sets and pods #40014

Closed
@junaid18183

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):

  1. Create deployment - kubectl create -f ngnix.yml
  2. Get deployment,rs,pods - kubectl get deploy,rs,pods
  3. Confirm its created from above output.
  4. Delete the deployment - kubectl delete deploy/my-nginx
  5. Confirm all 3(deploy,rs,pods are deleted) - kubectl get deploy,rs,pods
  6. Re-Create the deployement - kubectl create -f ngnix.yml
  7. Start the proxy - 'kubectl proxy'
  8. Hit the UI on 127.0.0.1:8001 and delete the deployment.
  9. 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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions