Skip to content

Instantly share code, notes, and snippets.

@yyyyahir
Last active December 16, 2018 10:01
Show Gist options
  • Save yyyyahir/469743292c755ea30030d634dab5d7b8 to your computer and use it in GitHub Desktop.
Save yyyyahir/469743292c755ea30030d634dab5d7b8 to your computer and use it in GitHub Desktop.
# Creates a Pod Disruption Budget for disruptable kube-system pods.
#
# Shorturl: https://git.io/fpNzS
# $ kubectl apply -f https://git.io/fpNzS
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: kube-system-pdb
spec:
minAvailable: 1
selector:
matchExpressions:
- {key: k8s-app, operator: In, values: [fluentd-gcp, kube-dns]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment