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
750 B

3 years ago
  1. # gq-hello-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
  9. labels:
  10. name: gq-hello
  11. role: backend
  12. pl: php
  13. application: php
  14. version: 7.2.9
  15. division: infrastructure
  16. spec:
  17. replicas: 3
  18. selector:
  19. matchLabels:
  20. name: gq-hello
  21. strategy:
  22. type: RollingUpdate
  23. rollingUpdate:
  24. maxUnavailable: 25%
  25. maxSurge: 25%
  26. template:
  27. metadata:
  28. labels:
  29. name: gq-hello
  30. spec:
  31. containers:
  32. - name: gq-hello
  33. image: __IMAGE__
  34. imagePullPolicy: Always
  35. ports:
  36. - name: gq-hello
  37. containerPort: 9000
  38. protocol: TCP