mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-11-02 09:01:02 +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,
|
||||
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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user