mirror of
https://github.com/bvanroll/example-node-project.git
synced 2025-08-29 20:02:42 +00:00
Draft create
This commit is contained in:
32
charts/frontend-node/templates/ingress.yaml
Executable file
32
charts/frontend-node/templates/ingress.yaml
Executable file
@@ -0,0 +1,32 @@
|
||||
{{- 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 }}
|
Reference in New Issue
Block a user