Skip to content

Commit

Permalink
replicas in deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
pmariglia committed Mar 1, 2024
1 parent c3c5e5f commit d256fae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/nx-cloud/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: nx-cloud
description: Nx Cloud Helm Chart
type: application
version: 0.13.0-rc.2
version: 0.13.0-rc.3
maintainers:
- name: nx
url: "https://nx.app/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
{{- include "nxCloud.app.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicas.frontend }}
replicas: {{ .Values.frontend.deployment.replicas | default .Values.replicas.frontend }}
selector:
matchLabels:
app: nx-cloud-frontend
Expand Down
2 changes: 1 addition & 1 deletion charts/nx-cloud/templates/nx-cloud-nx-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
labels:
{{- include "nxCloud.app.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicas.nxApi }}
replicas: {{ .Values.nxApi.deployment.replicas | default .Values.replicas.nxApi }}
selector:
matchLabels:
app: nx-cloud-nx-api
Expand Down
3 changes: 3 additions & 0 deletions charts/nx-cloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ frontend:
digest: ''
pullPolicy: Always
deployment:
replicas: 1
port: 4202
env: []
service:
Expand All @@ -49,6 +50,7 @@ nxApi:
digest: ''
pullPolicy: Always
deployment:
replicas: 1
port: 4203
env: []
service:
Expand Down Expand Up @@ -126,6 +128,7 @@ nxCloudWorkflows:
name: ''
externalName: ''

# Deprecated, use nxApi.deployment.replicas and frontend.deployment.replicas
replicas:
frontend: 1
nxApi: 1
Expand Down

0 comments on commit d256fae

Please sign in to comment.