Skip to content

Instantly share code, notes, and snippets.

@bharatmicrosystems
Created October 8, 2020 13:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bharatmicrosystems/5ead2769514e364bab331633ee707b5e to your computer and use it in GitHub Desktop.
Save bharatmicrosystems/5ead2769514e364bab331633ee707b5e to your computer and use it in GitHub Desktop.
cat <<EOF | kubectl apply -f -
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
name: nginx-v1
spec:
replicas: 10
selector:
matchLabels:
app: nginx
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 20%
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: bharamicrosystems/nginx:v1
name: nginx
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment