Skip to content
Snippets Groups Projects
Unverified Commit 7b698006 authored by paulfantom's avatar paulfantom
Browse files

jsonnet: add default container annotation for KSM and blackbox


Signed-off-by: default avatarpaulfantom <pawel@krupa.net.pl>
parent 752d1a7f
No related branches found
No related tags found
No related merge requests found
...@@ -218,7 +218,12 @@ function(params) { ...@@ -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- ...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment