ss.yaml 842 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. apiVersion: apps/v1
  2. kind: StatefulSet
  3. metadata:
  4. name: ob-tools
  5. namespace: observe
  6. spec:
  7. serviceName: ob-tools
  8. selector:
  9. matchLabels:
  10. app: ob-tools
  11. replicas: 1
  12. updateStrategy:
  13. type: RollingUpdate
  14. podManagementPolicy: OrderedReady
  15. template:
  16. metadata:
  17. labels:
  18. app: ob-tools
  19. app.kubernetes.io/name: ob-tools
  20. spec:
  21. containers:
  22. - name: ob-tools
  23. image: reg.cestong.com.cn/cecf/ob-tools
  24. imagePullPolicy: Always
  25. #env:
  26. # - name: LANG
  27. # value: C.UTF8
  28. # - name: LANGUAGE
  29. # value: en_US:en
  30. # - name: LC_ALL
  31. # value: en_US.UTF-8
  32. resources:
  33. limits:
  34. ephemeral-storage: "10Gi"
  35. memory: 1000Mi
  36. cpu: 2
  37. imagePullPolicy: Always
  38. ports: