mirror of
https://github.com/bvanroll/example-node-project.git
synced 2025-08-29 03:42:42 +00:00
33 lines
1.2 KiB
YAML
Executable File
33 lines
1.2 KiB
YAML
Executable File
{{- if and (.Values.jxRequirements.ingress.domain) (not .Values.knativeDeploy) }}
|
|
apiVersion: {{ .Values.jxRequirements.ingress.apiVersion }}
|
|
kind: Ingress
|
|
metadata:
|
|
annotations:
|
|
kubernetes.io/ingress.class: nginx
|
|
{{- if .Values.ingress.annotations }}
|
|
{{ toYaml .Values.ingress.annotations | indent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.jxRequirements.ingress.annotations }}
|
|
{{ toYaml .Values.jxRequirements.ingress.annotations | indent 4 }}
|
|
{{- end }}
|
|
name: {{ .Values.service.name }}
|
|
spec:
|
|
rules:
|
|
- host: {{ .Values.service.name }}{{ .Values.jxRequirements.ingress.namespaceSubDomain }}{{ .Values.jxRequirements.ingress.domain }}
|
|
http:
|
|
paths:
|
|
- backend:
|
|
serviceName: {{ .Values.service.name }}
|
|
servicePort: 80
|
|
{{- if .Values.jxRequirements.ingress.tls.enabled }}
|
|
tls:
|
|
- hosts:
|
|
- {{ .Values.service.name }}{{ .Values.jxRequirements.ingress.namespaceSubDomain }}{{ .Values.jxRequirements.ingress.domain }}
|
|
{{- if .Values.jxRequirements.ingress.tls.production }}
|
|
secretName: "tls-{{ .Values.jxRequirements.ingress.domain | replace "." "-" }}-p"
|
|
{{- else }}
|
|
secretName: "tls-{{ .Values.jxRequirements.ingress.domain | replace "." "-" }}-s"
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|