Skip to content

Instantly share code, notes, and snippets.

@bharatmicrosystems
Created July 26, 2020 19:19
Show Gist options
  • Select an option

  • Save bharatmicrosystems/4645c6ae5010b4bdd34457d322635c14 to your computer and use it in GitHub Desktop.

Select an option

Save bharatmicrosystems/4645c6ae5010b4bdd34457d322635c14 to your computer and use it in GitHub Desktop.
$ kubectl drain gke-cluster-1-default-pool-bf356567-mrnh --ignore-daemonsets
node/gke-cluster-1-default-pool-bf356567-mrnh cordoned
WARNING: ignoring DaemonSet-managed Pods: kube-system/fluentd-gke-rdm6l, kube-system/gke-metrics-agent-g57rl, kube-system/prometheus-to-sd-8d849
evicting pod kube-system/fluentd-gke-scaler-cd4d654d7-42px4
evicting pod default/nginx-5ffb5df89f-ctv4c
evicting pod default/nginx-5ffb5df89f-l9n96
evicting pod kube-system/event-exporter-gke-6c9d8bd8d8-ksb59
evicting pod kube-system/kube-dns-autoscaler-645f7d66cf-h95qf
evicting pod kube-system/kube-dns-56d8cd994f-g4pg7
evicting pod kube-system/l7-default-backend-678889f899-p4n8f
evicting pod kube-system/metrics-server-v0.3.6-7b7d6c7576-sh7f7
error when evicting pod "nginx-5ffb5df89f-ctv4c" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget.
pod/metrics-server-v0.3.6-7b7d6c7576-sh7f7 evicted
evicting pod default/nginx-5ffb5df89f-ctv4c
error when evicting pod "nginx-5ffb5df89f-ctv4c" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget.
evicting pod default/nginx-5ffb5df89f-ctv4c
I0726 18:47:29.220953 1139 request.go:621] Throttling request took 1.098178039s, request: GET:https://35.192.107.145/api/v1/namespaces/kube-system/pods/kube-dns-56d8cd994f-g4pg7
pod/kube-dns-autoscaler-645f7d66cf-h95qf evicted
pod/nginx-5ffb5df89f-l9n96 evicted
pod/l7-default-backend-678889f899-p4n8f evicted
pod/nginx-5ffb5df89f-ctv4c evicted
pod/fluentd-gke-scaler-cd4d654d7-42px4 evicted
pod/kube-dns-56d8cd994f-g4pg7 evicted
pod/event-exporter-gke-6c9d8bd8d8-ksb59 evicted
node/gke-cluster-1-default-pool-bf356567-mrnh evicted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment