Skip to content

Commit

Permalink
support img can be customize
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen committed Jan 10, 2025
1 parent 727afdd commit c7c1984
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 10 deletions.
2 changes: 1 addition & 1 deletion templates/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ spec:
name: {{ .Release.Name }}-secrets
key: newRelicKey
{{ end }}
image: getlago/api:v{{ .Values.version }}
image: {{ .Values.api.image.repository }}:v{{ .Values.version }}
name: {{ .Release.Name }}-api
ports:
- name: http
Expand Down
2 changes: 1 addition & 1 deletion templates/billing-worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ spec:
name: {{ .Release.Name }}-secrets
key: newRelicKey
{{ end }}
image: getlago/api:v{{ .Values.version }}
image: {{ .Values.billingWorker.image.repository }}:v{{ .Values.version }}
name: {{ .Release.Name }}-billing-worker
{{- with .Values.billingWorker.resources }}
resources:
Expand Down
2 changes: 1 addition & 1 deletion templates/clock-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ spec:
name: {{ .Release.Name }}-secrets
key: newRelicKey
{{ end }}
image: getlago/api:v{{ .Values.version }}
image: {{ .Values.clock.image.repository }}:v{{ .Values.version }}
name: {{ .Release.Name }}-clock
{{- with .Values.clock.resources }}
resources:
Expand Down
2 changes: 1 addition & 1 deletion templates/clock-worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ spec:
name: {{ .Release.Name }}-secrets
key: newRelicKey
{{ end }}
image: getlago/api:v{{ .Values.version }}
image: {{ .Values.clockWorker.image.repository }}:v{{ .Values.version }}
name: {{ .Release.Name }}-clock-worker
{{- with .Values.clockWorker.resources }}
resources:
Expand Down
2 changes: 1 addition & 1 deletion templates/events-worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ spec:
name: {{ .Release.Name }}-secrets
key: newRelicKey
{{ end }}
image: getlago/api:v{{ .Values.version }}
image: {{ .Values.eventsWorker.image.repository }}:v{{ .Values.version }}
name: {{ .Release.Name }}-events-worker
{{- with .Values.eventsWorker.resources }}
resources:
Expand Down
2 changes: 1 addition & 1 deletion templates/front-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
value: {{ $value | quote }}
{{- end }}
{{- end }}
image: getlago/front:v{{ .Values.version }}
image: {{ .Values.front.image.repository }}:v{{ .Values.version }}
name: {{ .Release.Name }}-front
ports:
- containerPort: 80
Expand Down
2 changes: 1 addition & 1 deletion templates/migrate-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
{{- end }}
containers:
- name: lago-migrate
image: getlago/api:v{{ .Values.version }}
image: {{ .Values.job.image.repository }}:v{{ .Values.version }}
args:
- ./scripts/migrate.sh
env:
Expand Down
2 changes: 1 addition & 1 deletion templates/pdf-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- image: getlago/lago-gotenberg:7.10
- image: {{ .Values.pdf.image.repository }}:7.10
name: {{ .Release.Name }}-pdf
ports:
- containerPort: 3000
Expand Down
2 changes: 1 addition & 1 deletion templates/webhook-worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ spec:
name: {{ .Release.Name }}-secrets
key: newRelicKey
{{ end }}
image: getlago/api:v{{ .Values.version }}
image: {{ .Values.webhookWorker.image.repository }}:v{{ .Values.version }}
name: {{ .Release.Name }}-webhook-worker
{{- with .Values.webhookWorker.resources }}
resources:
Expand Down
2 changes: 1 addition & 1 deletion templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ spec:
name: {{ .Release.Name }}-secrets
key: newRelicKey
{{ end }}
image: getlago/api:v{{ .Values.version }}
image: {{ .Values.worker.image.repository }}:v{{ .Values.version }}
name: {{ .Release.Name }}-worker
livenessProbe:
exec:
Expand Down
20 changes: 20 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ global:
#kubectlVersion: 1.29

front:
image:
repository: getlago/front
replicas: 1
service:
port: 80
Expand All @@ -112,6 +114,8 @@ front:
affinity: {}

api:
image:
repository: getlago/api
replicas: 1
service:
port: 3000
Expand All @@ -138,6 +142,8 @@ api:
affinity: {}

worker:
image:
repository: getlago/api
replicas: 1
rails:
sidekiqConcurrency: 20
Expand All @@ -161,6 +167,8 @@ worker:
affinity: {}

eventsWorker:
image:
repository: getlago/api
enabled: true
replicas: 1
rails:
Expand All @@ -185,6 +193,8 @@ eventsWorker:
affinity: {}

clockWorker:
image:
repository: getlago/api
enabled: true
replicas: 1
rails:
Expand All @@ -209,6 +219,8 @@ clockWorker:
affinity: {}

clock:
image:
repository: getlago/api
replicas: 1
rails:
env: 'production'
Expand All @@ -226,6 +238,8 @@ clock:
affinity: {}

pdf:
image:
repository: getlago/lago-gotenberg
replicas: 1
service:
port: 3001
Expand All @@ -241,6 +255,8 @@ pdf:
affinity: {}

billingWorker:
image:
repository: getlago/api
enabled: true
replicas: 1
rails:
Expand All @@ -265,6 +281,8 @@ billingWorker:
affinity: {}

webhookWorker:
image:
repository: getlago/api
enabled: true
replicas: 1
rails:
Expand All @@ -289,6 +307,8 @@ webhookWorker:
affinity: {}

job:
image:
repository: getlago/api
migrate:
nameOverride: null
podAnnotations: {}
Expand Down

0 comments on commit c7c1984

Please sign in to comment.