Created
October 8, 2020 13:40
-
-
Save bharatmicrosystems/58e938d556b0bd97870c5d29f0edf74f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat <<EOF | kubectl apply -f - | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: nginx | |
name: nginx | |
spec: | |
replicas: 10 | |
selector: | |
matchLabels: | |
app: nginx | |
strategy: | |
type: RollingUpdate | |
rollingUpdate: | |
maxSurge: 1 | |
maxUnavailable: 0 | |
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