Skip to content

Commit

Permalink
chore(chart/simpaas): expose api on /api (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
leroyguillaume authored Jul 17, 2024
1 parent f696166 commit e71bfd6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 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
2 changes: 1 addition & 1 deletion config/local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ common:
logFilter: simpaas=debug,warn

api:
replicas: 0
replicas: 1

op:
replicas: 0
Expand Down

0 comments on commit e71bfd6

Please sign in to comment.