Add API
This commit is contained in:
parent
18068c1b8e
commit
d8e86f17cf
@ -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
|
||||
|
@ -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 }}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user