Add API
This commit is contained in:
parent
18068c1b8e
commit
d8e86f17cf
3 changed files with 13 additions and 2 deletions
|
@ -4,8 +4,8 @@ name: basic-web-app
|
||||||
PullName: basic-app-puller
|
PullName: basic-app-puller
|
||||||
description: A basic Helm chart to have PHP webapps in Kubernetes. It supports webhook for pulling from gitea
|
description: A basic Helm chart to have PHP webapps in Kubernetes. It supports webhook for pulling from gitea
|
||||||
type: application
|
type: application
|
||||||
version: 1.0.0
|
version: 2.0.0
|
||||||
appVersion: "1.0.0"
|
appVersion: "2.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
|
|
|
@ -39,6 +39,15 @@ spec:
|
||||||
name: {{ $.Release.Name }}
|
name: {{ $.Release.Name }}
|
||||||
port:
|
port:
|
||||||
number: 8000
|
number: 8000
|
||||||
|
{{- range .api }}
|
||||||
|
- path: {{ .prefix | quote }}
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: {{ .service }}
|
||||||
|
port:
|
||||||
|
name: {{ .port }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,8 @@ ingress:
|
||||||
className: nginx
|
className: nginx
|
||||||
hosts:
|
hosts:
|
||||||
- host: chart-example.local
|
- host: chart-example.local
|
||||||
|
# Here we can add prefix, service and port for mounting an API
|
||||||
|
api: []
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
|
Loading…
Add table
Reference in a new issue