This commit is contained in:
Guilhem Lavaux 2024-12-04 17:46:50 +01:00
parent 18068c1b8e
commit d8e86f17cf
3 changed files with 13 additions and 2 deletions

View File

@ -4,8 +4,8 @@ name: basic-web-app
PullName: basic-app-puller
description: A basic Helm chart to have PHP webapps in Kubernetes. It supports webhook for pulling from gitea
type: application
version: 1.0.0
appVersion: "1.0.0"
version: 2.0.0
appVersion: "2.0.0"
dependencies:
- name: postgresql

View File

@ -39,6 +39,15 @@ spec:
name: {{ $.Release.Name }}
port:
number: 8000
{{- range .api }}
- path: {{ .prefix | quote }}
pathType: Prefix
backend:
service:
name: {{ .service }}
port:
name: {{ .port }}
{{- end }}
{{- end }}
{{- end }}

View File

@ -28,6 +28,8 @@ ingress:
className: nginx
hosts:
- host: chart-example.local
# Here we can add prefix, service and port for mounting an API
api: []
paths:
- path: /
pathType: Prefix