Skip to content

Commit

Permalink
chore(chart/simpaas): expose api on /api
Browse files Browse the repository at this point in the history
  • Loading branch information
leroyguillaume committed Jul 17, 2024
1 parent f696166 commit bd9a1b2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions charts/simpaas/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ spec:
secretKeyRef:
name: {{ include "simpaas.api.jwtSecretName" . }}
key: {{ .Values.api.jwtSecret.key }}
- name: ROOT_PATH
value: {{ .Values.api.ingress.path }}
{{- include "simpaas.env" (dict "Values" .Values "Service" .Values.api) | nindent 8 }}
{{- with $env }}
{{- toYaml . | nindent 8 }}
Expand Down
9 changes: 4 additions & 5 deletions charts/simpaas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ api:

livenessProbe:
httpGet:
path: /_health
path: /api/_health
port: http
readinessProbe:
httpGet:
path: /_health
path: /api/_health
port: http

jwtSecret:
Expand All @@ -94,7 +94,7 @@ api:
domain: ~
fqdn: ~
tls: false
path: /api/(.*)
path: /api
pathType: ImplementationSpecific

roleAdmin:
Expand Down Expand Up @@ -184,8 +184,7 @@ ingress:
className: ~
domain: ~
tlsSecretName: ~
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
annotations: {}

cert-manager:
clusterIssuers: []
Expand Down
4 changes: 2 additions & 2 deletions config/local.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
common:
image:
tag: latest
tag: sha-6cf127d
pullPolicy: Always

logFilter: simpaas=debug,warn

api:
replicas: 0
replicas: 1

op:
replicas: 0
Expand Down

0 comments on commit bd9a1b2

Please sign in to comment.