deployment_biz.yaml 914 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: ob-consumer-biz
  5. namespace: observe
  6. labels:
  7. app.kubernetes.io/name: ob-consumer-biz
  8. spec:
  9. selector:
  10. matchLabels:
  11. app.kubernetes.io/name: ob-consumer-biz
  12. replicas: 1
  13. template:
  14. metadata:
  15. labels:
  16. app.kubernetes.io/name: ob-consumer-biz
  17. spec:
  18. # nodeName: k8sm1
  19. containers:
  20. - name: observe-consumer-biz
  21. image: reg.cestong.com.cn/cecf/observe-server
  22. # command: ["/app/observe","consumer", "biz","-c", "/app/settings.yml"]
  23. command: ["/app/observe","consumer", "biz","-c", "/app/settings.yml", "--rebuilt"]
  24. imagePullPolicy: Always
  25. volumeMounts:
  26. - name: cm-settings
  27. mountPath: /app/settings.yml
  28. subPath: settings.yaml
  29. volumes:
  30. - name: cm-settings
  31. configMap:
  32. name: ob-server-settings