k8s-api-server-prd.yml 714 B

12345678910111213141516171819202122232425262728293031323334
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: api-server
  5. namespace: zhili
  6. labels:
  7. app: api-server
  8. spec:
  9. selector:
  10. matchLabels:
  11. app: api-server
  12. replicas: 1
  13. template:
  14. metadata:
  15. annotations:
  16. prometheus.io/scrape: 'true'
  17. prometheus.io/path: '/hz/monitor/metrics'
  18. prometheus.io/port: '8082'
  19. labels:
  20. app: api-server
  21. spec:
  22. hostname: api-server
  23. imagePullSecrets:
  24. - name: pull-images-secret
  25. containers:
  26. - name: api-server
  27. env:
  28. - name: PRO_ENV
  29. value: prod
  30. image: ${imageTag}
  31. imagePullPolicy: Always
  32. ports:
  33. - containerPort: 8082
  34. name: api