diff --git a/charts/retraced/Chart.yaml b/charts/retraced/Chart.yaml index 3cc97aa..143be71 100644 --- a/charts/retraced/Chart.yaml +++ b/charts/retraced/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: retraced description: A Helm chart for Kubernetes type: application -version: 0.1.2 +version: 0.1.3 appVersion: "1.8.0" diff --git a/charts/retraced/templates/retraced-admin-portal-deployment.yaml b/charts/retraced/templates/retraced-admin-portal-deployment.yaml index b476577..f7cbb3d 100644 --- a/charts/retraced/templates/retraced-admin-portal-deployment.yaml +++ b/charts/retraced/templates/retraced-admin-portal-deployment.yaml @@ -7,7 +7,7 @@ metadata: {{- include "retraced.labels" . | nindent 4 }} retraceddev: "1" spec: - replicas: 1 + replicas: {{ .Values.adminPortal.replicaCount }} selector: matchLabels: retraceddev: "1" @@ -39,10 +39,7 @@ spec: successThreshold: 2 timeoutSeconds: 10 resources: - limits: - cpu: 1000m - requests: - cpu: 100m + {{- toYaml .Values.adminPortal.resources | nindent 12 }} startupProbe: failureThreshold: 5 httpGet: diff --git a/charts/retraced/templates/retraced-api-deployment.yaml b/charts/retraced/templates/retraced-api-deployment.yaml index 96db5f3..e589cb1 100644 --- a/charts/retraced/templates/retraced-api-deployment.yaml +++ b/charts/retraced/templates/retraced-api-deployment.yaml @@ -7,7 +7,7 @@ metadata: {{- include "retraced.labels" . | nindent 4 }} retraceddev: "1" spec: - replicas: 1 + replicas: {{ .Values.api.replicaCount }} selector: matchLabels: retraceddev: "1" @@ -67,10 +67,7 @@ spec: successThreshold: 2 timeoutSeconds: 10 resources: - limits: - cpu: 1000m - requests: - cpu: 100m + {{- toYaml .Values.api.resources | nindent 12 }} startupProbe: failureThreshold: 5 httpGet: diff --git a/charts/retraced/templates/retraced-cron-deployment.yaml b/charts/retraced/templates/retraced-cron-deployment.yaml index a456912..925940e 100644 --- a/charts/retraced/templates/retraced-cron-deployment.yaml +++ b/charts/retraced/templates/retraced-cron-deployment.yaml @@ -7,7 +7,7 @@ metadata: {{- include "retraced.labels" . | nindent 4 }} retraceddev: "1" spec: - replicas: 1 + replicas: {{ .Values.cron.replicaCount }} selector: matchLabels: retraceddev: "1" @@ -46,7 +46,4 @@ spec: imagePullPolicy: IfNotPresent name: cron resources: - limits: - cpu: 100m - requests: - cpu: 10m + {{- toYaml .Values.cron.resources | nindent 12 }} diff --git a/charts/retraced/templates/retraced-dbutil-deployment.yaml b/charts/retraced/templates/retraced-dbutil-deployment.yaml index 7b8844a..113902d 100644 --- a/charts/retraced/templates/retraced-dbutil-deployment.yaml +++ b/charts/retraced/templates/retraced-dbutil-deployment.yaml @@ -9,7 +9,7 @@ metadata: retraceddev: "1" tier: dbutil spec: - replicas: 1 + replicas: {{ .Values.dbutil.replicaCount }} selector: matchLabels: app: retraced @@ -31,3 +31,5 @@ spec: name: {{ include "retraced.fullname" . }}-api image: retracedhq/retraced:1.8.0 name: dbutil + resources: + {{- toYaml .Values.dbutil.resources | nindent 12 }} diff --git a/charts/retraced/templates/retraced-nsqd-deployment.yaml b/charts/retraced/templates/retraced-nsqd-deployment.yaml index a038aec..3d845a9 100644 --- a/charts/retraced/templates/retraced-nsqd-deployment.yaml +++ b/charts/retraced/templates/retraced-nsqd-deployment.yaml @@ -7,7 +7,7 @@ metadata: {{- include "retraced.labels" . | nindent 4 }} retraceddev: "1" spec: - replicas: 1 + replicas: {{ .Values.nsqd.replicaCount }} selector: matchLabels: retraceddev: "1" @@ -42,7 +42,4 @@ spec: - containerPort: 4150 - containerPort: 4151 resources: - limits: - cpu: 1000m - requests: - cpu: 100m + {{- toYaml .Values.nsqd.resources | nindent 12 }} diff --git a/charts/retraced/values.yaml b/charts/retraced/values.yaml index ee78de5..080e248 100644 --- a/charts/retraced/values.yaml +++ b/charts/retraced/values.yaml @@ -1,5 +1,3 @@ -replicaCount: 1 - imagePullSecrets: [] nameOverride: "" fullnameOverride: "" @@ -48,6 +46,8 @@ tolerations: [] affinity: {} adminPortal: + replicaCount: 1 + resources: {} secret: BOXYHQ_LICENSE_KEY: "" DB_CLEANUP_LIMIT: "" @@ -71,6 +71,8 @@ adminPortal: SMTP_USER: "" api: + replicaCount: 1 + resources: {} secret: ADMIN_ROOT_TOKEN: dev POSTGRES_HOST: audit-postgresql-cluster @@ -81,4 +83,16 @@ api: BOOTSTRAP_API_TOKEN: dev BOOTSTRAP_ENVIRONMENT_ID: dev BOOTSTRAP_PROJECT_ID: dev - BOOTSTRAP_PROJECT_NAME: dev \ No newline at end of file + BOOTSTRAP_PROJECT_NAME: dev + +cron: + replicaCount: 1 + resources: {} + +dbutil: + replicaCount: 1 + resources: {} + +nsqd: + replicaCount: 1 + resources: {} \ No newline at end of file