Skip to content
Snippets Groups Projects
Commit 90a2e58a authored by Matthias Loibl's avatar Matthias Loibl
Browse files

contrib/kube-prometheus: Add linux node selector to adapter deployment

parent c18d8a4d
Branches
Tags
No related merge requests found
...@@ -113,6 +113,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet'; ...@@ -113,6 +113,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
deployment.mixin.metadata.withNamespace($._config.namespace) + deployment.mixin.metadata.withNamespace($._config.namespace) +
deployment.mixin.spec.selector.withMatchLabels($._config.prometheusAdapter.labels) + deployment.mixin.spec.selector.withMatchLabels($._config.prometheusAdapter.labels) +
deployment.mixin.spec.template.spec.withServiceAccountName($.prometheusAdapter.serviceAccount.metadata.name) + deployment.mixin.spec.template.spec.withServiceAccountName($.prometheusAdapter.serviceAccount.metadata.name) +
deployment.mixin.spec.template.spec.withNodeSelector({ 'beta.kubernetes.io/os': 'linux' }) +
deployment.mixin.spec.strategy.rollingUpdate.withMaxSurge(1) + deployment.mixin.spec.strategy.rollingUpdate.withMaxSurge(1) +
deployment.mixin.spec.strategy.rollingUpdate.withMaxUnavailable(0) + deployment.mixin.spec.strategy.rollingUpdate.withMaxUnavailable(0) +
deployment.mixin.spec.template.spec.withVolumes([ deployment.mixin.spec.template.spec.withVolumes([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment