Skip to content

Commit

Permalink
Configurable number of replicas for Stratos console (#4647)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikapelyukhin authored Oct 16, 2020
1 parent e0528f9 commit 3ea0afe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/kubernetes/console/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ metadata:
{{ toYaml .Values.console.deploymentExtraLabels | indent 4 }}
{{- end }}
spec:
replicas: 1
replicas: {{ .Values.console.replicaCount | default 1 }}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
maxSurge: 1
maxUnavailable: 0
selector:
matchLabels:
app.kubernetes.io/name: "stratos"
Expand Down
3 changes: 3 additions & 0 deletions deploy/kubernetes/console/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@
},
"userInviteSubject": {
"type": ["string", "null"]
},
"replicaCount": {
"type": ["integer", "null"]
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions deploy/kubernetes/console/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ console:
sslProtocols:
sslCiphers:

# Number of replicas to deploy
replicaCount: 1

images:
console: stratos-console
proxy: stratos-jetstream
Expand Down

0 comments on commit 3ea0afe

Please sign in to comment.