cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

podmonitor.yaml (778B)


      1 apiVersion: monitoring.coreos.com/v1
      2 kind: PodMonitor
      3 metadata:
      4   name: flux-system
      5   labels:
      6     app.kubernetes.io/part-of: flux
      7     app.kubernetes.io/component: monitoring
      8 spec:
      9   namespaceSelector:
     10     matchNames:
     11       - flux-system
     12   selector:
     13     matchExpressions:
     14       - key: app
     15         operator: In
     16         values:
     17           - helm-controller
     18           - source-controller
     19           - kustomize-controller
     20           - notification-controller
     21           - image-automation-controller
     22           - image-reflector-controller
     23   podMetricsEndpoints:
     24     - port: http-prom
     25       relabelings:
     26         # https://github.com/prometheus-operator/prometheus-operator/issues/4816
     27         - sourceLabels: [__meta_kubernetes_pod_phase]
     28           action: keep
     29           regex: Running