mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-10-25 22:21:19 +02:00
Merge pull request #1091 from paulfantom/default-containers
jsonnet: add default container annotation for KSM and blackbox exporter
This commit is contained in:
commit
31189e3a18
@ -218,7 +218,12 @@ function(params) {
|
||||
replicas: bb._config.replicas,
|
||||
selector: { matchLabels: bb._config.selectorLabels },
|
||||
template: {
|
||||
metadata: { labels: bb._config.commonLabels },
|
||||
metadata: {
|
||||
labels: bb._config.commonLabels,
|
||||
annotations: {
|
||||
'kubectl.kubernetes.io/default-container': blackboxExporter.name,
|
||||
},
|
||||
},
|
||||
spec: {
|
||||
containers: [blackboxExporter, reloader, kubeRbacProxy],
|
||||
nodeSelector: { 'kubernetes.io/os': 'linux' },
|
||||
|
||||
@ -109,6 +109,11 @@ function(params) (import 'github.com/kubernetes/kube-state-metrics/jsonnet/kube-
|
||||
deployment+: {
|
||||
spec+: {
|
||||
template+: {
|
||||
metadata+: {
|
||||
annotations+: {
|
||||
'kubectl.kubernetes.io/default-container': 'kube-state-metrics',
|
||||
},
|
||||
},
|
||||
spec+: {
|
||||
containers: std.map(function(c) c {
|
||||
ports:: null,
|
||||
|
||||
@ -17,6 +17,8 @@ spec:
|
||||
app.kubernetes.io/part-of: kube-prometheus
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
kubectl.kubernetes.io/default-container: blackbox-exporter
|
||||
labels:
|
||||
app.kubernetes.io/component: exporter
|
||||
app.kubernetes.io/name: blackbox-exporter
|
||||
|
||||
@ -17,6 +17,8 @@ spec:
|
||||
app.kubernetes.io/part-of: kube-prometheus
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
kubectl.kubernetes.io/default-container: kube-state-metrics
|
||||
labels:
|
||||
app.kubernetes.io/component: exporter
|
||||
app.kubernetes.io/name: kube-state-metrics
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user