Skip to content

Commit 39f70be

Browse files
authored
Merge pull request #16 from projectsyn/configurable_replicas
Configurable replicas
2 parents 553765b + f5030f3 commit 39f70be

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

class/defaults.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ parameters:
1515
monitor_user: maxscale
1616
service_pwd: ?{vaultkv:${customer:name}/${cluster:name}/${_instance}/service_pwd}
1717
monitor_pwd: ?{vaultkv:${customer:name}/${cluster:name}/${_instance}/monitor_pwd}
18+
replicas: 2
1819
images:
1920
maxscale:
2021
image: ghcr.io/appuio/maxscale-docker

component/main.jsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ local deployment = kube.Deployment('maxscale') {
6565
},
6666
},
6767
spec+: {
68+
replicas: params.replicas,
6869
template+: {
6970
spec+: {
7071
containers_+: {

docs/modules/ROOT/pages/references/parameters.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ default:: `syn-maxscale`
1010

1111
The namespace in which to deploy this component.
1212

13+
== `replicas`
14+
15+
[horizontal]
16+
type:: integer
17+
default:: `2`
18+
19+
How many replicas the deployment has.
20+
1321
== `master_only_listen_address`
1422

1523
[horizontal]

0 commit comments

Comments
 (0)