Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement