apiVersion: apps/v1 kind: Deployment metadata: name: metrics-service namespace: system labels: app: metrics-service spec: replicas: 1 selector: matchLabels: app: metrics-service template: metadata: labels: app: metrics-service spec: containers: - name: metrics-service image: container-mom/metrics-service:latest ports: - containerPort: 8080 name: http env: - name: OTEL_EXPORTER_OTLP_ENDPOINT value: "http://otel-collector:4317" livenessProbe: httpGet: path: /health port: http initialDelaySeconds: 10 periodSeconds: 30 readinessProbe: httpGet: path: /health port: http initialDelaySeconds: 5 periodSeconds: 10 --- apiVersion: v1 kind: Service metadata: name: metrics-service namespace: system spec: selector: app: metrics-service ports: - port: 8080 targetPort: http name: http