mirror of https://github.com/easzlab/kubeasz.git
23 lines
620 B
YAML
23 lines
620 B
YAML
|
{{- if .Values.Master.HostName }}
|
||
|
apiVersion: {{ .Values.Master.Ingress.ApiVersion }}
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
{{- if .Values.Master.Ingress.Annotations }}
|
||
|
annotations:
|
||
|
{{ toYaml .Values.Master.Ingress.Annotations | indent 4 }}
|
||
|
{{- end }}
|
||
|
name: {{ template "jenkins.fullname" . }}
|
||
|
spec:
|
||
|
rules:
|
||
|
- host: {{ .Values.Master.HostName | quote }}
|
||
|
http:
|
||
|
paths:
|
||
|
- backend:
|
||
|
serviceName: {{ template "jenkins.fullname" . }}
|
||
|
servicePort: {{ .Values.Master.ServicePort }}
|
||
|
{{- if .Values.Master.Ingress.TLS }}
|
||
|
tls:
|
||
|
{{ toYaml .Values.Master.Ingress.TLS | indent 4 }}
|
||
|
{{- end -}}
|
||
|
{{- end }}
|