Skip to content

Instantly share code, notes, and snippets.

@jeffmaury
Created October 26, 2021 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffmaury/f3551df45f820c3bf7ca267d822dbbd5 to your computer and use it in GitHub Desktop.
Save jeffmaury/f3551df45f820c3bf7ca267d822dbbd5 to your computer and use it in GitHub Desktop.
apiVersion: "apps/v1"
kind: "Deployment"
metadata:
labels:
app: "nginx"
name: "nginx-deployment"
spec:
progressDeadlineSeconds: 600
replicas: 3
revisionHistoryLimit: 10
selector:
matchExpressions:
- key: app
operator: In
values:
- nginx
strategy:
rollingUpdate:
maxSurge: "25%"
maxUnavailable: "25%"
type: "RollingUpdate"
template:
metadata:
labels:
app: "nginx"
spec:
containers:
- image: "nginx:1.14.2"
imagePullPolicy: "IfNotPresent"
name: "nginx"
ports:
- containerPort: 80
protocol: "TCP"
resources: {}
terminationMessagePath: "/dev/termination-log"
terminationMessagePolicy: "File"
dnsPolicy: "ClusterFirst"
restartPolicy: "Always"
schedulerName: "default-scheduler"
securityContext: {}
terminationGracePeriodSeconds: 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment