infra4talos/apps-kustomized/kube-prometheus/kubeStateMetrics-service.yaml

26 lines
645 B
YAML

apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/component: exporter
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/part-of: kube-prometheus
app.kubernetes.io/version: 2.9.2
name: kube-state-metrics
namespace: monitoring
annotations:
argocd.argoproj.io/sync-wave: '1'
spec:
clusterIP: None
ports:
- name: https-main
port: 8443
targetPort: https-main
- name: https-self
port: 9443
targetPort: https-self
selector:
app.kubernetes.io/component: exporter
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/part-of: kube-prometheus