ss.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ---
  2. apiVersion: apps/v1
  3. kind: StatefulSet
  4. metadata:
  5. name: i6000pusher
  6. namespace: data
  7. spec:
  8. selector:
  9. matchLabels:
  10. app: i6000pusher
  11. replicas: 1
  12. updateStrategy:
  13. type: RollingUpdate
  14. serviceName: i6000pusher
  15. podManagementPolicy: OrderedReady
  16. template:
  17. metadata:
  18. labels:
  19. app: i6000pusher
  20. app.kubernetes.io/name: i6000pusher
  21. annotations:
  22. prometheus.io/port: "8080"
  23. prometheus.io/scrape: "true"
  24. prometheus.io/path: /metrics
  25. spec:
  26. volumes:
  27. - name: appconf
  28. configMap:
  29. name: i6000pusher
  30. containers:
  31. - name: i6000pusher
  32. volumeMounts:
  33. - name: appconf
  34. mountPath: "/conf"
  35. readOnly: true
  36. image: reg.cestong.com.cn/cecf/i6000pusher:latest
  37. imagePullPolicy: Always
  38. ports:
  39. - name: monitor
  40. containerPort: 8080
  41. protocol: TCP
  42. resources:
  43. limits:
  44. memory: 2Gi
  45. #cpu: 500m
  46. cpu: 2
  47. securityContext:
  48. allowPrivilegeEscalation: false
  49. env:
  50. - name: TZ
  51. value: "Asia/Shanghai"