apiVersion: v1
kind: Service
metadata:
  annotations:
    prometheus.io/scrape: "true"
  labels:
    app: kube-state-metrics
  name: kube-state-metrics
  namespace: monitoring
spec:
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: 8080
  - name: telemetry
    port: 81
    protocol: TCP
    targetPort: 8081
  selector:
    app: kube-state-metrics
  sessionAffinity: None
  type: ClusterIP