deployment-front.yaml 708 B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: obf
  6. namespace: observe
  7. labels:
  8. app.kubernetes.io/name: obf
  9. spec:
  10. selector:
  11. matchLabels:
  12. app.kubernetes.io/name: obf
  13. replicas: 1
  14. template:
  15. metadata:
  16. labels:
  17. app.kubernetes.io/name: obf
  18. spec:
  19. containers:
  20. - name: nginx
  21. image: reg.cestong.com.cn/cecf/observe-front:latest
  22. imagePullPolicy: Always
  23. ports:
  24. - name: web
  25. containerPort: 80
  26. protocol: TCP
  27. securityContext:
  28. allowPrivilegeEscalation: false
  29. #runAsGroup: ''
  30. env:
  31. - name: TZ
  32. value: "Asia/Shanghai"