deployment_core.yaml 859 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: ob-core
  5. namespace: observe
  6. labels:
  7. app.kubernetes.io/name: ob-core
  8. spec:
  9. selector:
  10. matchLabels:
  11. app.kubernetes.io/name: ob-core
  12. replicas: 1
  13. template:
  14. metadata:
  15. labels:
  16. app.kubernetes.io/name: ob-core
  17. spec:
  18. shareProcessNamespace: true
  19. containers:
  20. - name: ob-core
  21. image: reg.cestong.com.cn/cecf/ob-core
  22. imagePullPolicy: Always
  23. resources:
  24. limits:
  25. cpu: "4"
  26. memory: "8Gi"
  27. requests:
  28. cpu: "1"
  29. memory: "2048Mi"
  30. volumeMounts:
  31. - name: cm-settings
  32. mountPath: /app/config.yaml
  33. subPath: settings.yaml
  34. volumes:
  35. - name: cm-settings
  36. configMap:
  37. name: ob-server-settings