monitor blackbox-exporter over https
This commit is contained in:
@@ -190,7 +190,7 @@ local kubeRbacProxyContainer = import '../kube-rbac-proxy/container.libsonnet';
|
|||||||
labels: bb.assignLabels,
|
labels: bb.assignLabels,
|
||||||
},
|
},
|
||||||
spec: {
|
spec: {
|
||||||
ports: [{ name: 'http', port: bb.port, targetPort: 'http' }],
|
ports: [{ name: 'http', port: bb.port, targetPort: 'https' }],
|
||||||
selector: bb.matchLabels,
|
selector: bb.matchLabels,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -209,6 +209,10 @@ local kubeRbacProxyContainer = import '../kube-rbac-proxy/container.libsonnet';
|
|||||||
interval: '30s',
|
interval: '30s',
|
||||||
path: '/metrics',
|
path: '/metrics',
|
||||||
port: 'http',
|
port: 'http',
|
||||||
|
scheme: 'https',
|
||||||
|
tlsConfig: {
|
||||||
|
insecureSkipVerify: true,
|
||||||
|
},
|
||||||
}],
|
}],
|
||||||
selector: {
|
selector: {
|
||||||
matchLabels: bb.matchLabels,
|
matchLabels: bb.matchLabels,
|
||||||
|
|||||||
@@ -10,6 +10,6 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 9115
|
port: 9115
|
||||||
targetPort: http
|
targetPort: https
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: blackbox-exporter
|
app.kubernetes.io/name: blackbox-exporter
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ spec:
|
|||||||
- interval: 30s
|
- interval: 30s
|
||||||
path: /metrics
|
path: /metrics
|
||||||
port: http
|
port: http
|
||||||
|
scheme: https
|
||||||
|
tlsConfig:
|
||||||
|
insecureSkipVerify: true
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: blackbox-exporter
|
app.kubernetes.io/name: blackbox-exporter
|
||||||
|
|||||||
Reference in New Issue
Block a user