mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-11-04 10:01:03 +01:00
jsonnet: add default container annotation for KSM and blackbox
Signed-off-by: paulfantom <pawel@krupa.net.pl>
This commit is contained in:
parent
752d1a7fdc
commit
7b69800686
@ -218,7 +218,12 @@ function(params) {
|
|||||||
replicas: bb._config.replicas,
|
replicas: bb._config.replicas,
|
||||||
selector: { matchLabels: bb._config.selectorLabels },
|
selector: { matchLabels: bb._config.selectorLabels },
|
||||||
template: {
|
template: {
|
||||||
metadata: { labels: bb._config.commonLabels },
|
metadata: {
|
||||||
|
labels: bb._config.commonLabels,
|
||||||
|
annotations: {
|
||||||
|
'kubectl.kubernetes.io/default-container': blackboxExporter.name,
|
||||||
|
},
|
||||||
|
},
|
||||||
spec: {
|
spec: {
|
||||||
containers: [blackboxExporter, reloader, kubeRbacProxy],
|
containers: [blackboxExporter, reloader, kubeRbacProxy],
|
||||||
nodeSelector: { 'kubernetes.io/os': 'linux' },
|
nodeSelector: { 'kubernetes.io/os': 'linux' },
|
||||||
|
|||||||
@ -109,6 +109,11 @@ function(params) (import 'github.com/kubernetes/kube-state-metrics/jsonnet/kube-
|
|||||||
deployment+: {
|
deployment+: {
|
||||||
spec+: {
|
spec+: {
|
||||||
template+: {
|
template+: {
|
||||||
|
metadata+: {
|
||||||
|
annotations+: {
|
||||||
|
'kubectl.kubernetes.io/default-container': 'kube-state-metrics',
|
||||||
|
},
|
||||||
|
},
|
||||||
spec+: {
|
spec+: {
|
||||||
containers: std.map(function(c) c {
|
containers: std.map(function(c) c {
|
||||||
ports:: null,
|
ports:: null,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user