monitor blackbox-exporter over https

This commit is contained in:
PÁLFALVI Tamás
2020-12-26 13:13:36 +01:00
parent eda90b6833
commit 66aca04688
3 changed files with 9 additions and 2 deletions

View File

@@ -190,7 +190,7 @@ local kubeRbacProxyContainer = import '../kube-rbac-proxy/container.libsonnet';
labels: bb.assignLabels,
},
spec: {
ports: [{ name: 'http', port: bb.port, targetPort: 'http' }],
ports: [{ name: 'http', port: bb.port, targetPort: 'https' }],
selector: bb.matchLabels,
},
},
@@ -209,6 +209,10 @@ local kubeRbacProxyContainer = import '../kube-rbac-proxy/container.libsonnet';
interval: '30s',
path: '/metrics',
port: 'http',
scheme: 'https',
tlsConfig: {
insecureSkipVerify: true,
},
}],
selector: {
matchLabels: bb.matchLabels,

View File

@@ -10,6 +10,6 @@ spec:
ports:
- name: http
port: 9115
targetPort: http
targetPort: https
selector:
app.kubernetes.io/name: blackbox-exporter

View File

@@ -11,6 +11,9 @@ spec:
- interval: 30s
path: /metrics
port: http
scheme: https
tlsConfig:
insecureSkipVerify: true
selector:
matchLabels:
app.kubernetes.io/name: blackbox-exporter