Skip to content

Commit db3cdf4

Browse files
committed
make command configurable
1 parent a46c4ad commit db3cdf4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

helm-chart/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ spec:
6767
- name: http
6868
containerPort: {{ .Values.api.service.targetPort }}
6969
protocol: TCP
70+
command: {{ toYaml .Values.api.command | nindent 12 }}
7071
env:
7172
{{- range $key, $value := .Values.api.env }}
7273
- name: {{ $key }}

helm-chart/values.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ api:
1010
pullPolicy: IfNotPresent
1111
tag: "latest"
1212

13+
command: ["uvicorn", "stac_search.api:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]
14+
1315
replicaCount: 1
1416

1517
# Init container configuration for loading STAC data
@@ -59,17 +61,17 @@ api:
5961
path: /docs
6062
port: 8000
6163
initialDelaySeconds: 30
62-
periodSeconds: 10
63-
timeoutSeconds: 5
64+
periodSeconds: 30
65+
timeoutSeconds: 30
6466
failureThreshold: 3
6567

6668
readinessProbe:
6769
httpGet:
6870
path: /docs
6971
port: 8000
7072
initialDelaySeconds: 5
71-
periodSeconds: 5
72-
timeoutSeconds: 3
73+
periodSeconds: 30
74+
timeoutSeconds: 30
7375
failureThreshold: 3
7476

7577
# Frontend service configuration

0 commit comments

Comments
 (0)