From b7d08b201b0f702936724473e90b14fed04ab21b Mon Sep 17 00:00:00 2001 From: vaibhav_16dec Date: Fri, 16 Feb 2018 06:33:55 +0000 Subject: Replica Scaling of Consul and Log container Issue-ID: OOM-692 Change-Id: I7ddbcbe562b3e5f82384c734c48d6c810a647f62 Signed-off-by: vaibhav_16dec --- kubernetes/consul/templates/consul-agent-deployment.yaml | 1 + kubernetes/consul/templates/consul-server-deployment.yaml | 2 +- kubernetes/consul/values.yaml | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'kubernetes/consul') diff --git a/kubernetes/consul/templates/consul-agent-deployment.yaml b/kubernetes/consul/templates/consul-agent-deployment.yaml index 81b16b54ca..a2bbe6636f 100644 --- a/kubernetes/consul/templates/consul-agent-deployment.yaml +++ b/kubernetes/consul/templates/consul-agent-deployment.yaml @@ -7,6 +7,7 @@ metadata: name: consul-agent namespace: "{{ .Values.nsPrefix }}" spec: + replicas: {{ .Values.consulAgentReplicas }} selector: matchLabels: app: consul-agent diff --git a/kubernetes/consul/templates/consul-server-deployment.yaml b/kubernetes/consul/templates/consul-server-deployment.yaml index c9f2cfb372..6aafee4cb2 100644 --- a/kubernetes/consul/templates/consul-server-deployment.yaml +++ b/kubernetes/consul/templates/consul-server-deployment.yaml @@ -7,7 +7,7 @@ metadata: name: consul-server namespace: "{{ .Values.nsPrefix }}" spec: - replicas: 3 + replicas: {{ .Values.consulServerReplicas }} selector: matchLabels: app: consul-server diff --git a/kubernetes/consul/values.yaml b/kubernetes/consul/values.yaml index 89f3ecd0a7..a6909d7d21 100644 --- a/kubernetes/consul/values.yaml +++ b/kubernetes/consul/values.yaml @@ -3,5 +3,7 @@ nodePortPrefix: 302 consuldockerTag: "latest" rootHostPath: "/dockerdata-nfs" consulimageRegistry: "docker.io/consul" +consulAgentReplicas: 1 +consulServerReplicas: 3 service: type: NodePort -- cgit 1.2.3-korg