Advertisement
GautamSomani

K8s my-dep2

Dec 31st, 2020
1,143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.83 KB | None | 0 0
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4.   labels:
  5.     app: my-dep2
  6.   name: my-dep2
  7.   namespace: default
  8. spec:
  9.   progressDeadlineSeconds: 600
  10.   replicas: 4
  11.   revisionHistoryLimit: 10
  12.   selector:
  13.     matchLabels:
  14.       app: my-dep2
  15.   strategy:
  16.     rollingUpdate:
  17.       maxSurge: 25%
  18.       maxUnavailable: 25%
  19.     type: RollingUpdate
  20.   template:
  21.     metadata:
  22.       creationTimestamp: null
  23.       labels:
  24.         app: my-dep2
  25.     spec:
  26.       containers:
  27.       - image: busybox:1.31
  28.         imagePullPolicy: Always
  29.         name: busybox
  30.         resources: {}
  31.         terminationMessagePath: /dev/termination-log
  32.         terminationMessagePolicy: File
  33.       dnsPolicy: ClusterFirst
  34.       restartPolicy: Always
  35.       schedulerName: default-scheduler
  36.       securityContext: {}
  37.       terminationGracePeriodSeconds: 30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement