|
|
@ -64,7 +64,8 @@ service:
|
|
|
|
ingress:
|
|
|
|
ingress:
|
|
|
|
enabled: false
|
|
|
|
enabled: false
|
|
|
|
# Used to create Ingress record (should used with service.type: ClusterIP).
|
|
|
|
# Used to create Ingress record (should used with service.type: ClusterIP).
|
|
|
|
# hostname: chart-example.local
|
|
|
|
hosts:
|
|
|
|
|
|
|
|
- chart-example.local
|
|
|
|
annotations:
|
|
|
|
annotations:
|
|
|
|
# kubernetes.io/ingress.class: nginx
|
|
|
|
# kubernetes.io/ingress.class: nginx
|
|
|
|
# kubernetes.io/tls-acme: "true"
|
|
|
|
# kubernetes.io/tls-acme: "true"
|
|
|
@ -107,13 +108,15 @@ const defaultIgnore = `# Patterns to ignore when building packages.
|
|
|
|
`
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
|
|
const defaultIngress = `{{- if .Values.ingress.enabled -}}
|
|
|
|
const defaultIngress = `{{- if .Values.ingress.enabled -}}
|
|
|
|
|
|
|
|
{{- $serviceName := include "fullname" . -}}
|
|
|
|
|
|
|
|
{{- $servicePort := .Values.service.externalPort -}}
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Ingress
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: {{ template "fullname" . }}
|
|
|
|
name: {{ template "fullname" . }}
|
|
|
|
labels:
|
|
|
|
labels:
|
|
|
|
app: {{ template "fullname" . }}
|
|
|
|
app: {{ template "fullname" . }}
|
|
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
|
|
|
|
release: "{{ .Release.Name }}"
|
|
|
|
release: "{{ .Release.Name }}"
|
|
|
|
heritage: "{{ .Release.Service }}"
|
|
|
|
heritage: "{{ .Release.Service }}"
|
|
|
|
annotations:
|
|
|
|
annotations:
|
|
|
@ -122,13 +125,15 @@ metadata:
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
spec:
|
|
|
|
spec:
|
|
|
|
rules:
|
|
|
|
rules:
|
|
|
|
- host: {{ .Values.ingress.hostname }}
|
|
|
|
{{- range $host := .Values.ingress.hosts }}
|
|
|
|
|
|
|
|
- host: {{ $host }}
|
|
|
|
http:
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
- path: /
|
|
|
|
backend:
|
|
|
|
backend:
|
|
|
|
serviceName: {{ template "fullname" . }}
|
|
|
|
serviceName: {{ $serviceName }}
|
|
|
|
servicePort: 80
|
|
|
|
servicePort: {{ $servicePort }}
|
|
|
|
|
|
|
|
{{- end -}}
|
|
|
|
{{- if .Values.ingress.tls }}
|
|
|
|
{{- if .Values.ingress.tls }}
|
|
|
|
tls:
|
|
|
|
tls:
|
|
|
|
{{ toYaml .Values.ingress.tls | indent 4 }}
|
|
|
|
{{ toYaml .Values.ingress.tls | indent 4 }}
|
|
|
|