diff --git a/manifests/blackbox-exporter-configuration.yaml b/manifests/blackbox-exporter-configuration.yaml index 7af052c570d3cb1bcb5271083b80161efdf415d4..0f5b03ebf0b4689da6d5f8cc798e2344ce351895 100644 --- a/manifests/blackbox-exporter-configuration.yaml +++ b/manifests/blackbox-exporter-configuration.yaml @@ -42,5 +42,10 @@ data: "preferred_ip_protocol": "ip4" kind: ConfigMap metadata: + labels: + app.kubernetes.io/component: exporter + app.kubernetes.io/name: blackbox-exporter + app.kubernetes.io/part-of: kube-prometheus + app.kubernetes.io/version: 0.18.0 name: blackbox-exporter-configuration namespace: monitoring diff --git a/manifests/blackbox-exporter-deployment.yaml b/manifests/blackbox-exporter-deployment.yaml index ca71dafbbcef53efb0767837a1b3a7adf754d875..9c0ec4c03bcec8df59f55548fecc07b3a61495f1 100644 --- a/manifests/blackbox-exporter-deployment.yaml +++ b/manifests/blackbox-exporter-deployment.yaml @@ -2,20 +2,26 @@ apiVersion: apps/v1 kind: Deployment metadata: labels: + app.kubernetes.io/component: exporter app.kubernetes.io/name: blackbox-exporter - app.kubernetes.io/version: v0.18.0 + app.kubernetes.io/part-of: kube-prometheus + app.kubernetes.io/version: 0.18.0 name: blackbox-exporter namespace: monitoring spec: replicas: 1 selector: matchLabels: + app.kubernetes.io/component: exporter app.kubernetes.io/name: blackbox-exporter + app.kubernetes.io/part-of: kube-prometheus template: metadata: labels: + app.kubernetes.io/component: exporter app.kubernetes.io/name: blackbox-exporter - app.kubernetes.io/version: v0.18.0 + app.kubernetes.io/part-of: kube-prometheus + app.kubernetes.io/version: 0.18.0 spec: containers: - args: @@ -71,6 +77,13 @@ spec: ports: - containerPort: 9115 name: https + resources: + limits: + cpu: 20m + memory: 40Mi + requests: + cpu: 10m + memory: 20Mi securityContext: runAsGroup: 65532 runAsNonRoot: true diff --git a/manifests/blackbox-exporter-service.yaml b/manifests/blackbox-exporter-service.yaml index 5a693e2b35ff758cc2b878507df341183bb57221..8b568e274fb73671fa6047120b53af2f1afe2a06 100644 --- a/manifests/blackbox-exporter-service.yaml +++ b/manifests/blackbox-exporter-service.yaml @@ -2,8 +2,10 @@ apiVersion: v1 kind: Service metadata: labels: + app.kubernetes.io/component: exporter app.kubernetes.io/name: blackbox-exporter - app.kubernetes.io/version: v0.18.0 + app.kubernetes.io/part-of: kube-prometheus + app.kubernetes.io/version: 0.18.0 name: blackbox-exporter namespace: monitoring spec: @@ -15,4 +17,6 @@ spec: port: 19115 targetPort: http selector: + app.kubernetes.io/component: exporter app.kubernetes.io/name: blackbox-exporter + app.kubernetes.io/part-of: kube-prometheus diff --git a/manifests/blackbox-exporter-serviceMonitor.yaml b/manifests/blackbox-exporter-serviceMonitor.yaml index b4b780913c522efdb588937578a954e6c1b9f2ac..ab7b5038656e148352b5786e32f7e88d473ec52d 100644 --- a/manifests/blackbox-exporter-serviceMonitor.yaml +++ b/manifests/blackbox-exporter-serviceMonitor.yaml @@ -2,8 +2,10 @@ apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: labels: + app.kubernetes.io/component: exporter app.kubernetes.io/name: blackbox-exporter - app.kubernetes.io/version: v0.18.0 + app.kubernetes.io/part-of: kube-prometheus + app.kubernetes.io/version: 0.18.0 name: blackbox-exporter namespace: monitoring spec: @@ -17,4 +19,6 @@ spec: insecureSkipVerify: true selector: matchLabels: + app.kubernetes.io/component: exporter app.kubernetes.io/name: blackbox-exporter + app.kubernetes.io/part-of: kube-prometheus