Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cat <<EOF | kubectl apply -f -
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
name: nginx-v2
spec:
replicas: 2
selector:
matchLabels:
app: nginx
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 20%
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: bharamicrosystems/nginx:v2
name: nginx
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment