Skip to content

Commit

Permalink
retraced service limits templated
Browse files Browse the repository at this point in the history
  • Loading branch information
vktrbrlv committed Jul 15, 2024
1 parent 1c33be2 commit f684aee
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 25 deletions.
2 changes: 1 addition & 1 deletion charts/retraced/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "retraced.labels" . | nindent 4 }}
retraceddev: "1"
spec:
replicas: 1
replicas: {{ .Values.adminPortal.replicaCount }}
selector:
matchLabels:
retraceddev: "1"
Expand Down Expand Up @@ -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:
Expand Down
7 changes: 2 additions & 5 deletions charts/retraced/templates/retraced-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "retraced.labels" . | nindent 4 }}
retraceddev: "1"
spec:
replicas: 1
replicas: {{ .Values.api.replicaCount }}
selector:
matchLabels:
retraceddev: "1"
Expand Down Expand Up @@ -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:
Expand Down
7 changes: 2 additions & 5 deletions charts/retraced/templates/retraced-cron-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "retraced.labels" . | nindent 4 }}
retraceddev: "1"
spec:
replicas: 1
replicas: {{ .Values.cron.replicaCount }}
selector:
matchLabels:
retraceddev: "1"
Expand Down Expand Up @@ -46,7 +46,4 @@ spec:
imagePullPolicy: IfNotPresent
name: cron
resources:
limits:
cpu: 100m
requests:
cpu: 10m
{{- toYaml .Values.cron.resources | nindent 12 }}
4 changes: 3 additions & 1 deletion charts/retraced/templates/retraced-dbutil-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
retraceddev: "1"
tier: dbutil
spec:
replicas: 1
replicas: {{ .Values.dbutil.replicaCount }}
selector:
matchLabels:
app: retraced
Expand All @@ -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 }}
7 changes: 2 additions & 5 deletions charts/retraced/templates/retraced-nsqd-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "retraced.labels" . | nindent 4 }}
retraceddev: "1"
spec:
replicas: 1
replicas: {{ .Values.nsqd.replicaCount }}
selector:
matchLabels:
retraceddev: "1"
Expand Down Expand Up @@ -42,7 +42,4 @@ spec:
- containerPort: 4150
- containerPort: 4151
resources:
limits:
cpu: 1000m
requests:
cpu: 100m
{{- toYaml .Values.nsqd.resources | nindent 12 }}
20 changes: 17 additions & 3 deletions charts/retraced/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
replicaCount: 1

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand Down Expand Up @@ -48,6 +46,8 @@ tolerations: []
affinity: {}

adminPortal:
replicaCount: 1
resources: {}
secret:
BOXYHQ_LICENSE_KEY: ""
DB_CLEANUP_LIMIT: ""
Expand All @@ -71,6 +71,8 @@ adminPortal:
SMTP_USER: ""

api:
replicaCount: 1
resources: {}
secret:
ADMIN_ROOT_TOKEN: dev
POSTGRES_HOST: audit-postgresql-cluster
Expand All @@ -81,4 +83,16 @@ api:
BOOTSTRAP_API_TOKEN: dev
BOOTSTRAP_ENVIRONMENT_ID: dev
BOOTSTRAP_PROJECT_ID: dev
BOOTSTRAP_PROJECT_NAME: dev
BOOTSTRAP_PROJECT_NAME: dev

cron:
replicaCount: 1
resources: {}

dbutil:
replicaCount: 1
resources: {}

nsqd:
replicaCount: 1
resources: {}

0 comments on commit f684aee

Please sign in to comment.