mirror of https://github.com/helm/helm
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>pull/12791/head
parent
bd897c96fb
commit
6057585fa4
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
# Source: chart-with-ingress-with-list-host/templates/ingress.yaml
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: chart-with-ingress-with-list-host
|
||||||
|
spec:
|
||||||
|
ingressClassName: myclassname
|
||||||
|
rules:
|
||||||
|
- host: "myhost1.local"
|
||||||
|
- host: "changed_host.com"
|
||||||
|
- host: "myhost3.local"
|
@ -0,0 +1,39 @@
|
|||||||
|
---
|
||||||
|
# Source: chart-with-ingress-with-map-host/templates/ingress.yaml
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: chart-with-ingress-with-map-host
|
||||||
|
spec:
|
||||||
|
ingressClassName: myclassname
|
||||||
|
rules:
|
||||||
|
- host: "myhost1.local"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: mypathtype1
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: mypath1
|
||||||
|
port:
|
||||||
|
number: 9898
|
||||||
|
- host: "changed_host.com"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: mypathtype2
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: mypath2
|
||||||
|
port:
|
||||||
|
number: 9898
|
||||||
|
- host: "myhost3.local"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: mypathtype3
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: mypath3
|
||||||
|
port:
|
||||||
|
number: 9898
|
@ -0,0 +1,21 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
appVersion: "1.0"
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
name: chart-with-ingress-with-list-host
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
@ -0,0 +1,27 @@
|
|||||||
|
{{- if .Values.ingress.enabled -}}
|
||||||
|
{{- $svcPort := .Values.service.externalPort -}}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: {{ .Chart.Name }}
|
||||||
|
{{- with .Values.ingress.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
ingressClassName: {{ .Values.ingress.className }}
|
||||||
|
{{- if .Values.ingress.tls }}
|
||||||
|
tls:
|
||||||
|
{{- range .Values.ingress.tls }}
|
||||||
|
- hosts:
|
||||||
|
{{- range .hosts }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
secretName: {{ .secretName }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
rules:
|
||||||
|
{{- range .Values.ingress.hosts }}
|
||||||
|
- host: {{ .host | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
@ -0,0 +1,14 @@
|
|||||||
|
# Kubernetes Service settings
|
||||||
|
service:
|
||||||
|
externalPort: 9898
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
className: myclassname
|
||||||
|
additionalLabels: {}
|
||||||
|
annotations: {}
|
||||||
|
hosts:
|
||||||
|
- host: myhost1.local
|
||||||
|
- host: myhost2.local
|
||||||
|
- host: myhost3.local
|
||||||
|
tls: []
|
@ -0,0 +1,21 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
appVersion: "1.0"
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
name: chart-with-ingress-with-map-host
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
@ -0,0 +1,38 @@
|
|||||||
|
{{- if .Values.ingress.enabled -}}
|
||||||
|
{{- $svcPort := .Values.service.externalPort -}}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: {{ .Chart.Name }}
|
||||||
|
{{- with .Values.ingress.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
ingressClassName: {{ .Values.ingress.className }}
|
||||||
|
{{- if .Values.ingress.tls }}
|
||||||
|
tls:
|
||||||
|
{{- range .Values.ingress.tls }}
|
||||||
|
- hosts:
|
||||||
|
{{- range .hosts }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
secretName: {{ .secretName }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
rules:
|
||||||
|
{{- range .Values.ingress.hosts }}
|
||||||
|
- host: {{ .host | quote }}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
{{- range .paths }}
|
||||||
|
- path: {{ .path }}
|
||||||
|
pathType: {{ .pathType }}
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: {{ .name }}
|
||||||
|
port:
|
||||||
|
number: {{ $svcPort }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
@ -0,0 +1,26 @@
|
|||||||
|
# Kubernetes Service settings
|
||||||
|
service:
|
||||||
|
externalPort: 9898
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
className: myclassname
|
||||||
|
additionalLabels: {}
|
||||||
|
annotations: {}
|
||||||
|
hosts:
|
||||||
|
- host: myhost1.local
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
name: mypath1
|
||||||
|
pathType: mypathtype1
|
||||||
|
- host: myhost2.local
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
name: mypath2
|
||||||
|
pathType: mypathtype2
|
||||||
|
- host: myhost3.local
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
name: mypath3
|
||||||
|
pathType: mypathtype3
|
||||||
|
tls: []
|
Loading…
Reference in new issue