diff --git a/charts/mgob/templates/statefulset.yaml b/charts/mgob/templates/statefulset.yaml index 1383240..0e229da 100644 --- a/charts/mgob/templates/statefulset.yaml +++ b/charts/mgob/templates/statefulset.yaml @@ -13,7 +13,7 @@ metadata: {{- end }} spec: serviceName: {{ include "common.names.fullname" . }} - replicas: 1 + replicas: {{ .Values.replicaCount }} selector: matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }} template: diff --git a/charts/mgob/values.schema.json b/charts/mgob/values.schema.json new file mode 100644 index 0000000..545568d --- /dev/null +++ b/charts/mgob/values.schema.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "title": "Values schema", + "type": "object", + "properties": { + "replicaCount": { + "type": "integer", + "enum": [0, 1] + } + }, + "required": ["replicaCount"] +} \ No newline at end of file