Skip to content

Commit

Permalink
update deployment configuration to use command and args from values.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Jan 7, 2025
1 parent e7841db commit 070fb0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion deployment/k8s/charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: {{ .Values.command }}
command: {{ .Values.image.command }}
args: {{ .Values.image.args }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
env:
Expand Down
4 changes: 2 additions & 2 deletions deployment/k8s/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ image:
repository: ghcr.io/developmentseed/titiler
tag: latest
pullPolicy: IfNotPresent
command: ["uvicorn"]
args: ["titiler.application.main:app", "--host", "0.0.0.0", "--port", "80", "--workers", "1"]

nameOverride: ""
fullnameOverride: ""
Expand Down Expand Up @@ -48,8 +50,6 @@ env:
GDAL_HTTP_VERSION: 2
PYTHONWARNINGS: "ignore"

command: ["uvicorn", "titiler.application.main:app", "--host", "0.0.0.0", "--port", "80", "--workers", "1"]

resources:
limits:
cpu: 1
Expand Down

0 comments on commit 070fb0c

Please sign in to comment.