Skip to content

Instantly share code, notes, and snippets.

@tksm
Created Aug 28, 2017
Embed
What would you like to do?
pod disruption budget
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: myapp
spec:
replicas: 2 # レプリカ数の設定
template:
metadata:
labels:
run: myapp
spec:
containers:
- image: nginx:1.13
name: myapp
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 120 # ready まで 2 分かかる設定
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: myapp
spec:
maxUnavailable: 1
selector:
matchLabels:
run: myapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment