Skip to content

Commit 006de49

Browse files
Merge pull request #17 from basedosdados/main
Update dev deploy files
2 parents 5d8abaa + 56ab2db commit 006de49

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/deploy-dev.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ jobs:
7575
nginx.ingress.kubernetes.io/rewrite-target: /$2
7676
nginx.ingress.kubernetes.io/ssl-redirect: "true"
7777
cert-manager.io/issuer: letsencrypt-production
78+
nginx.ingress.kubernetes.io/configuration-snippet: |
79+
# Redirect exact /chatbot → /chatbot/ with a 301
80+
rewrite ^/chatbot$ /chatbot/ permanent;
7881
tls:
7982
- hosts:
8083
- development.basedosdados.org

charts/basedosdados-chatbot-frontend/templates/deployment.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,17 @@ spec:
4141
resources:
4242
{{- toYaml . | nindent 12 }}
4343
{{- end }}
44+
livenessProbe:
45+
httpGet:
46+
path: /_stcore/health
47+
port: 8501
48+
initialDelaySeconds: 10
49+
periodSeconds: 10
4450
readinessProbe:
4551
httpGet:
46-
path: /chatbot
52+
path: /_stcore/health
4753
port: 8501
48-
initialDelaySeconds: 5
54+
initialDelaySeconds: 10
4955
periodSeconds: 10
5056
# TODO: use persistent volume
5157
volumes:

0 commit comments

Comments
 (0)