{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63005","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63005/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63005/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63005/events","html_url":"https://github.com/kubernetes/kubernetes/issues/63005","id":316804523,"node_id":"MDU6SXNzdWUzMTY4MDQ1MjM=","number":63005,"title":"How to prevent DaemonSet pods being evicted from nodes which have disk pressure?","user":{"login":"mdianjun","id":12122541,"node_id":"MDQ6VXNlcjEyMTIyNTQx","avatar_url":"https://avatars2.githubusercontent.com/u/12122541?v=4","gravatar_id":"","url":"https://api.github.com/users/mdianjun","html_url":"https://github.com/mdianjun","followers_url":"https://api.github.com/users/mdianjun/followers","following_url":"https://api.github.com/users/mdianjun/following{/other_user}","gists_url":"https://api.github.com/users/mdianjun/gists{/gist_id}","starred_url":"https://api.github.com/users/mdianjun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdianjun/subscriptions","organizations_url":"https://api.github.com/users/mdianjun/orgs","repos_url":"https://api.github.com/users/mdianjun/repos","events_url":"https://api.github.com/users/mdianjun/events{/privacy}","received_events_url":"https://api.github.com/users/mdianjun/received_events","type":"User","site_admin":false},"labels":[{"id":267761362,"node_id":"MDU6TGFiZWwyNjc3NjEzNjI=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/feature","name":"kind/feature","color":"c7def8","default":false},{"id":617149945,"node_id":"MDU6TGFiZWw2MTcxNDk5NDU=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/needs-sig","name":"needs-sig","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-04-23T13:07:40Z","updated_at":"2018-10-09T06:33:14Z","closed_at":null,"author_association":"NONE","body":"How to prevent DaemonSet pods being evicted from nodes which have disk pressure?\r\n```\r\napiVersion: extensions/v1beta1\r\nkind: DaemonSet\r\nmetadata:\r\n  name: centos-daemon\r\n  namespace: kube-system\r\nspec:\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: centos-daemon\r\n      annotations:\r\n        scheduler.alpha.kubernetes.io/critical-pod: ''  //HERE\r\n    spec:\r\n      tolerations:\r\n      - effect: NoSchedule\r\n        key: node-role.kubernetes.io/master\r\n      - effect: NoExecute\r\n        key: node.kubernetes.io/disk-pressure   //HERE\r\n        operator: Exists\r\n      nodeSelector:\r\n        kubernetes.io/hostname: kc-bcc-pod24-10-196-108-11.hadoop.jd.local\r\n      terminationGracePeriodSeconds: 0\r\n      priorityClassName: system-cluster-critical   //HERE\r\n      containers:\r\n      - name: centos\r\n        image: repo.jd.local/centos/centos-mdj:1.2\r\n        command: [\"sleep\", \"1000000000\"]\r\n        ports:\r\n        - name: ssh\r\n          containerPort: 22\r\n        - name: web\r\n          containerPort: 80\r\n        resources:\r\n          limits:\r\n            cpu: 300m\r\n            memory: 512Mi\r\n          requests:\r\n            cpu: 300m\r\n            memory: 512Mi\r\n```\r\n\r\nI had tried 3 ways:\r\n\r\n1. critical pod\r\n2. TaintBasedEvictions=true,TaintNodesByCondition=true\r\n3. priorityClass\r\n\r\nFeature gates had been configured on apiserver, controller-manager, scheduler, kubelet:\r\n`ExperimentalCriticalPodAnnotation=true,LocalStorageCapacityIsolation=true,PersistentLocalVolumes=true,MountPropagation=true,VolumeScheduling=true,CustomPodDNS=true,PodPriority=true,TaintBasedEvictions=true,TaintNodesByCondition=true`\r\n\r\nBut all of them were useless.\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/428076396","html_url":"https://github.com/kubernetes/kubernetes/issues/63005#issuecomment-428076396","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63005","id":428076396,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODA3NjM5Ng==","user":{"login":"k8s-ci-robot","id":20407524,"node_id":"MDQ6VXNlcjIwNDA3NTI0","avatar_url":"https://avatars0.githubusercontent.com/u/20407524?v=4","gravatar_id":"","url":"https://api.github.com/users/k8s-ci-robot","html_url":"https://github.com/k8s-ci-robot","followers_url":"https://api.github.com/users/k8s-ci-robot/followers","following_url":"https://api.github.com/users/k8s-ci-robot/following{/other_user}","gists_url":"https://api.github.com/users/k8s-ci-robot/gists{/gist_id}","starred_url":"https://api.github.com/users/k8s-ci-robot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k8s-ci-robot/subscriptions","organizations_url":"https://api.github.com/users/k8s-ci-robot/orgs","repos_url":"https://api.github.com/users/k8s-ci-robot/repos","events_url":"https://api.github.com/users/k8s-ci-robot/events{/privacy}","received_events_url":"https://api.github.com/users/k8s-ci-robot/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T06:33:14Z","updated_at":"2018-10-09T06:33:14Z","author_association":"CONTRIBUTOR","body":"@mdianjun: There are no sig labels on this issue. Please add a sig label by either:\n\n1. mentioning a sig: `@kubernetes/sig-<group-name>-<group-suffix>`\n    e.g., `@kubernetes/sig-contributor-experience-<group-suffix>` to notify the contributor experience sig, OR\n\n2. specifying the label manually: `/sig <group-name>`\n    e.g., `/sig scalability` to apply the `sig/scalability` label\n\nNote: Method 1 will trigger an email to the group. See the [group list](https://git.k8s.io/community/sig-list.md).\nThe `<group-suffix>` in method 1 has to be replaced with one of these: _**bugs, feature-requests, pr-reviews, test-failures, proposals**_.\n\n\n<details>\n\nInstructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.\n</details>"}}
{"actor":{"display_login":"k8s-ci-robot"}}