apiVersion: apps/v1 kind: Deployment metadata: name: kafka-delay namespace: ob labels: app.kubernetes.io/name: kafka-delay spec: selector: matchLabels: app.kubernetes.io/name: kafka-delay replicas: 1 template: metadata: labels: app.kubernetes.io/name: kafka-delay spec: containers: - name: observe-server image: reg.cestong.com.cn/cecf/kafka-delay imagePullPolicy: Always ports: - name: metrics containerPort: 8000 protocol: TCP env: - name: TZ value: "Asia/Shanghai" - name: KAFKA_BROKERS value: "kafka-headless.observe.svc.cluster.local:9094"