correiabrux

Deployment

Nov 10th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.66 KB | None | 0 0
  1. ---
  2. apiVersion: extensions/v1beta1
  3. kind: Deployment
  4. metadata:
  5.   labels:
  6.     app.kubernetes.io/name: example
  7.   name: example
  8. spec:
  9.   progressDeadlineSeconds: 300
  10.   strategy:
  11.     type: RollingUpdate
  12.     rollingUpdate:
  13.       maxUnavailable: 10%
  14.   template:
  15.     metadata:
  16.       labels:
  17.         app: example
  18.     spec:
  19.       containers:
  20.         - name: example
  21.           image: brucorreia/test:tagname
  22.           ports:
  23.           - containerPort: 80
  24.             protocol: TCP
  25.           resources:
  26.             requests:
  27.               memory: "256M"
  28.               cpu: "256m"
  29.             limits:
  30.               memory: "512M"
  31.               cpu: "512m"
Advertisement
Add Comment
Please, Sign In to add comment