deployment_traceurl.yaml 844 B

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