Skip to content

Commit

Permalink
Merge pull request #64 from rajatvig/remove_replicas
Browse files Browse the repository at this point in the history
Remove the replicas from the container object
  • Loading branch information
brancz authored Mar 19, 2019
2 parents 22d6896 + cf5ad1b commit de2ec3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions grafana/grafana.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
},
Expand Down Expand Up @@ -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) +
Expand Down

0 comments on commit de2ec3f

Please sign in to comment.