PHP容器化demo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
791 B

3 years ago
  1. # gq-hello-nginx-deployment.yaml
  2. #
  3. # @version 180806:2
  4. # @author zhangxuhong <zhangxuhong@xitu.io>
  5. kind: Deployment
  6. apiVersion: apps/v1
  7. metadata:
  8. name: gq-hello-nginx
  9. labels:
  10. name: gq-hello-nginx
  11. role: backend
  12. pl: c
  13. application: nginx
  14. version: 1.14.0
  15. division: infrastructure
  16. spec:
  17. replicas: 3
  18. selector:
  19. matchLabels:
  20. name: gq-hello-nginx
  21. strategy:
  22. type: RollingUpdate
  23. rollingUpdate:
  24. maxUnavailable: 25%
  25. maxSurge: 25%
  26. template:
  27. metadata:
  28. labels:
  29. name: gq-hello-nginx
  30. spec:
  31. containers:
  32. - name: gq-hello-nginx
  33. image: __IMAGE__
  34. imagePullPolicy: Always
  35. ports:
  36. - name: gq-hello-nginx
  37. containerPort: 80
  38. protocol: TCP