From cf5ad1bdbeb23d2a80fa2c5b76cae89c4d0d51a3 Mon Sep 17 00:00:00 2001 From: Rajat Vig Date: Mon, 18 Mar 2019 15:02:21 -0700 Subject: [PATCH] Remove the replicas from the container object --- grafana/grafana.libsonnet | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/grafana/grafana.libsonnet b/grafana/grafana.libsonnet index 71fe2dd..840b092 100644 --- a/grafana/grafana.libsonnet +++ b/grafana/grafana.libsonnet @@ -27,7 +27,6 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet'; ldap: null, plugins: [], container: { - replicas: 1, requests: { cpu: '100m', memory: '100Mi' }, limits: { cpu: '200m', memory: '200Mi' }, }, @@ -145,7 +144,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet'; container.mixin.resources.withRequests($._config.grafana.container.requests) + container.mixin.resources.withLimits($._config.grafana.container.limits); - deployment.new('grafana', $._config.grafana.container.replicas, c, podLabels) + + deployment.new('grafana', 1, c, podLabels) + deployment.mixin.metadata.withNamespace($._config.namespace) + deployment.mixin.metadata.withLabels(podLabels) + deployment.mixin.spec.selector.withMatchLabels(podLabels) +