Skip to content

Commit

Permalink
openfga: control replica count
Browse files Browse the repository at this point in the history
Signed-off-by: ElysaSrc <[email protected]>
  • Loading branch information
ElysaSrc committed Feb 25, 2025
1 parent 25e4d48 commit 024541c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions templates/openfga/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
annotations:
{{- toYaml $mergedAnnotations | nindent 4 }}
spec:
replicas: 1
replicas: {{ .Values.services.openfga.replicaCount }}
selector:
matchLabels:
{{- include "osrd.selectorLabels.openfga" . | nindent 6 }}
Expand All @@ -22,7 +22,10 @@ spec:
labels:
{{- include "osrd.selectorLabels.openfga" . | nindent 8 }}
spec:

{{- with (.Values.imagePullSecrets | default list) }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
initContainers:
- name: openfga-migrate
image: "{{ .Values.images.openfga }}"
Expand Down
1 change: 1 addition & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ services:

osrdyne:
enabled: true
replicaCount: 1
service:
type: ClusterIP
port: 80
Expand Down

0 comments on commit 024541c

Please sign in to comment.