{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68627","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68627/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68627/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68627/events","html_url":"https://github.com/kubernetes/kubernetes/issues/68627","id":359973827,"node_id":"MDU6SXNzdWUzNTk5NzM4Mjc=","number":68627,"title":"StatefulSet delete behavior changed in v1.11","user":{"login":"rezroo","id":2976597,"node_id":"MDQ6VXNlcjI5NzY1OTc=","avatar_url":"https://avatars1.githubusercontent.com/u/2976597?v=4","gravatar_id":"","url":"https://api.github.com/users/rezroo","html_url":"https://github.com/rezroo","followers_url":"https://api.github.com/users/rezroo/followers","following_url":"https://api.github.com/users/rezroo/following{/other_user}","gists_url":"https://api.github.com/users/rezroo/gists{/gist_id}","starred_url":"https://api.github.com/users/rezroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rezroo/subscriptions","organizations_url":"https://api.github.com/users/rezroo/orgs","repos_url":"https://api.github.com/users/rezroo/repos","events_url":"https://api.github.com/users/rezroo/events{/privacy}","received_events_url":"https://api.github.com/users/rezroo/received_events","type":"User","site_admin":false},"labels":[{"id":353400216,"node_id":"MDU6TGFiZWwzNTM0MDAyMTY=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/area/stateful-apps","name":"area/stateful-apps","color":"0052cc","default":false},{"id":261005360,"node_id":"MDU6TGFiZWwyNjEwMDUzNjA=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/api-change","name":"kind/api-change","color":"e11d21","default":false},{"id":105146071,"node_id":"MDU6TGFiZWwxMDUxNDYwNzE=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false},{"id":404091735,"node_id":"MDU6TGFiZWw0MDQwOTE3MzU=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/apps","name":"sig/apps","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-09-13T16:35:24Z","updated_at":"2018-09-27T22:43:53Z","closed_at":null,"author_association":"NONE","body":"/kind bug\r\n\r\n**What happened**:\r\nIn k8s v1.11.1 all statefulset pods are deleted at the same time. This is what I observe:\r\n```\r\nstack@master:~$ kubectl get pod -w\r\nNAME           READY     STATUS    RESTARTS   AGE\r\nechoserver-0   0/1       Pending   0          0s\r\nechoserver-0   0/1       Pending   0         0s\r\nechoserver-0   0/1       ContainerCreating   0         0s\r\nechoserver-0   0/1       ContainerCreating   0         0s\r\nechoserver-0   1/1       Running   0         1s\r\nechoserver-1   0/1       Pending   0         0s\r\nechoserver-1   0/1       Pending   0         0s\r\nechoserver-1   0/1       ContainerCreating   0         0s\r\nechoserver-1   0/1       ContainerCreating   0         0s\r\nechoserver-1   1/1       Running   0         1s\r\nechoserver-2   0/1       Pending   0         0s\r\nechoserver-2   0/1       Pending   0         0s\r\nechoserver-2   0/1       ContainerCreating   0         0s\r\nechoserver-2   0/1       ContainerCreating   0         0s\r\nechoserver-2   1/1       Running   0         1s\r\nechoserver-0   1/1       Terminating   0         22s\r\nechoserver-2   1/1       Terminating   0         20s\r\nechoserver-1   1/1       Terminating   0         21s\r\nechoserver-1   0/1       Terminating   0         1m\r\nechoserver-0   0/1       Terminating   0         1m\r\nechoserver-0   0/1       Terminating   0         1m\r\nechoserver-0   0/1       Terminating   0         1m\r\nechoserver-2   0/1       Terminating   0         1m\r\nechoserver-2   0/1       Terminating   0         1m\r\nechoserver-2   0/1       Terminating   0         1m\r\nechoserver-2   0/1       Terminating   0         1m\r\nechoserver-1   0/1       Terminating   0         1m\r\nechoserver-1   0/1       Terminating   0         1m\r\n```\r\n\r\n**What you expected to happen**:\r\nIn k8s v1.9.3 StatefulSet deletion [adheres to documentation](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#using-statefulsets) and follows `Ordered, graceful deletion and termination`. In v1.9.3 when I delete the statefulset this is what I see:\r\n```\r\nstack@master:~$ kubectl get pod -w\r\nNAME           READY     STATUS    RESTARTS   AGE\r\nechoserver-0   1/1       Running   0          22s\r\nechoserver-1   1/1       Running   0          15s\r\nechoserver-2   1/1       Running   0          9s\r\nechoserver-2   1/1       Terminating   0         29s\r\nechoserver-2   0/1       Terminating   0         30s\r\nechoserver-2   0/1       Terminating   0         38s\r\nechoserver-2   0/1       Terminating   0         38s\r\nechoserver-1   1/1       Terminating   0         44s\r\nechoserver-1   0/1       Terminating   0         45s\r\nechoserver-1   0/1       Terminating   0         55s\r\nechoserver-1   0/1       Terminating   0         55s\r\nechoserver-0   1/1       Terminating   0         1m\r\nechoserver-0   0/1       Terminating   0         1m\r\nechoserver-0   0/1       Terminating   0         1m\r\nechoserver-0   0/1       Terminating   0         1m\r\n```\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\nCreate, the delete the following:\r\n```\r\napiVersion: v1\r\nkind: Service\r\nmetadata:\r\n  name: echoserver\r\n  labels:\r\n    app: echoserver\r\nspec:\r\n  ports:\r\n  - port: 80\r\n    targetPort: 8080\r\n  clusterIP: None\r\n  selector:\r\n    app: echoserver\r\n---\r\napiVersion: apps/v1\r\nkind: StatefulSet\r\nmetadata:\r\n  name: echoserver\r\nspec:\r\n  serviceName: echoserver\r\n  replicas: 3\r\n  selector:\r\n    matchLabels:\r\n      app: echoserver\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: echoserver\r\n    spec:\r\n      terminationGracePeriodSeconds: 120\r\n      containers:\r\n      - image: alpine\r\n        name: alpine\r\n        command:\r\n          - sleep\r\n          - '70'\r\n        imagePullPolicy: IfNotPresent\r\n```\r\n\r\n**Anything else we need to know?**:\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`):\r\n```\r\n$ kubectl version\r\nClient Version: version.Info{Major:\"1\", Minor:\"11\", GitVersion:\"v1.11.1\", GitCommit:\"b1b29978270dc22fecc592ac55d903350454310a\", GitTreeState:\"clean\", BuildDate:\"2018-07-17T18:53:20Z\", GoVersion:\"go1.10.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"11\", GitVersion:\"v1.11.1\", GitCommit:\"b1b29978270dc22fecc592ac55d903350454310a\", GitTreeState:\"clean\", BuildDate:\"2018-07-17T18:43:26Z\", GoVersion:\"go1.10.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n- Cloud provider or hardware configuration:\r\n- OS (e.g. from /etc/os-release):\r\nNAME=\"Ubuntu\"\r\nVERSION=\"16.04.2 LTS (Xenial Xerus)\"\r\n- Kernel (e.g. `uname -a`):\r\n- Install tools:\r\n- Others:\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/425265699","html_url":"https://github.com/kubernetes/kubernetes/issues/68627#issuecomment-425265699","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68627","id":425265699,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTI2NTY5OQ==","user":{"login":"kow3ns","id":11380896,"node_id":"MDQ6VXNlcjExMzgwODk2","avatar_url":"https://avatars3.githubusercontent.com/u/11380896?v=4","gravatar_id":"","url":"https://api.github.com/users/kow3ns","html_url":"https://github.com/kow3ns","followers_url":"https://api.github.com/users/kow3ns/followers","following_url":"https://api.github.com/users/kow3ns/following{/other_user}","gists_url":"https://api.github.com/users/kow3ns/gists{/gist_id}","starred_url":"https://api.github.com/users/kow3ns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kow3ns/subscriptions","organizations_url":"https://api.github.com/users/kow3ns/orgs","repos_url":"https://api.github.com/users/kow3ns/repos","events_url":"https://api.github.com/users/kow3ns/events{/privacy}","received_events_url":"https://api.github.com/users/kow3ns/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T22:43:53Z","updated_at":"2018-09-27T22:43:53Z","author_association":"MEMBER","body":"/assign kow3ns"}}
{"actor":{"display_login":"kow3ns"}}