deployment.yaml 739 B

123456789101112131415161718192021222324252627282930
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: kafka-delay
  5. namespace: ob
  6. labels:
  7. app.kubernetes.io/name: kafka-delay
  8. spec:
  9. selector:
  10. matchLabels:
  11. app.kubernetes.io/name: kafka-delay
  12. replicas: 1
  13. template:
  14. metadata:
  15. labels:
  16. app.kubernetes.io/name: kafka-delay
  17. spec:
  18. containers:
  19. - name: observe-server
  20. image: reg.cestong.com.cn/cecf/kafka-delay
  21. imagePullPolicy: Always
  22. ports:
  23. - name: metrics
  24. containerPort: 8000
  25. protocol: TCP
  26. env:
  27. - name: TZ
  28. value: "Asia/Shanghai"
  29. - name: KAFKA_BROKERS
  30. value: "kafka-headless.observe.svc.cluster.local:9094"