SHARE
TWEET

Untitled

a guest Jan 22nd, 2020 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@k8s-master:~# cat app.yaml
  2. ---
  3. apiVersion: apps/v1
  4. kind: Deployment
  5. metadata:
  6.   name: my-nginx
  7. spec:
  8.   selector:
  9.     matchLabels:
  10.       run: my-nginx
  11.   replicas: 4
  12.   strategy:
  13.     type: RollingUpdate
  14.     rollingUpdate:
  15.       maxSurge: 1
  16.       maxUnavailable: 25%
  17.   template:
  18.     metadata:
  19.       labels:
  20.         run: my-nginx
  21.     spec:
  22.       containers:
  23.       - name: apple-app
  24.         image: hashicorp/http-echo:0.2.3
  25.         imagePullPolicy: ""
  26.         readinessProbe:
  27.           httpGet:
  28.              path: /
  29.              port: 5679
  30.           initialDelaySeconds: 5
  31.           periodSeconds: 5
  32.           successThreshold: 1
  33.         args:
  34.           - "-text=xxx"
  35.  
  36. ---
  37.  
  38. apiVersion: v1
  39. kind: Service
  40. metadata:
  41.   name: my-nginx
  42.   labels:
  43.     run: my-nginx
  44. spec:
  45.   ports:
  46.   - port: 5678
  47.     protocol: TCP
  48.   selector:
  49.     run: my-nginx
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