-
Notifications
You must be signed in to change notification settings - Fork 40k
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
kubectl delete replication controller hangs for the same spec but with different name #8598
Comments
Well, it's not hanging forever, but takes abnormal long time to return. |
@yujuhong I was expecting this because it is confusing what if the two rc have different numbers... |
What if you do --cascade=false for the delete command? I hope that actually completes. Sent from my iPhone
|
@derekwaynecarr --cascade=false works, seems should be covered by #2210. Thanks! |
@derekwaynecarr |
server side garbage collection is alpha and on by default in 1.4. On Tuesday, September 20, 2016, Ye Wang notifications@github.com wrote:
|
$ cat t1.yaml apiVersion: v1beta3 kind: ReplicationController metadata: name: kube-nginx1 namespace: default spec: replicas: 1 selector: k8s-app: kube-nginx1 template: metadata: labels: k8s-app: kube-nginx1 spec: containers: - name: nginx image: nginx $ cat t2.yaml apiVersion: v1beta3 kind: ReplicationController metadata: name: kube-nginx2 namespace: default spec: replicas: 1 selector: k8s-app: kube-nginx1 template: metadata: labels: k8s-app: kube-nginx1 spec: containers: - name: nginx image: nginx $ kubectl create -f t1.yaml replicationcontrollers/kube-nginx1 $ kubectl create -f t2.yaml replicationcontrollers/kube-nginx2 $ kubectl delete -f t2.yaml (hangs for several minutes) $ kubectl get rc kube-nginx1 nginx nginx k8s-app=kube-nginx1 1 kube-nginx2 nginx nginx k8s-app=kube-nginx1 0
The text was updated successfully, but these errors were encountered: