daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest Mar 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. kubectl apply -f MY_DEPLOYMENT.yaml
  2.      
  3. apiVersion: apps/v1
  4. kind: Deployment
  5. metadata:
  6.   name: web-service-rf
  7. spec:
  8.   selector:
  9.     matchLabels:
  10.       app: web-service-rf
  11.   replicas: 2 # tells deployment to run 2 pods matching the template
  12.   strategy:
  13.     rollingUpdate:
  14.       maxSurge: 4
  15.       maxUnavailable: 0%
  16.      
  17. livenessProbe:
  18.     httpGet:
  19.       path: /health/liveness
  20.       port: 80
  21.     initialDelaySeconds: 5
  22.     periodSeconds: 3
  23.   readinessProbe:
  24.     httpGet:
  25.       path: /health/readiness
  26.       port: 80
  27.     initialDelaySeconds: 5
  28.     periodSeconds: 5
  29.     successThreshold: 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top