33 lines
953 B
YAML
33 lines
953 B
YAML
{{- if and .Values.ingress.enabled .Values.ingress.hosts }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "stellaops.fullname" . }}
|
|
labels:
|
|
{{- include "stellaops.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{- range $k, $v := .Values.ingress.annotations }}
|
|
{{ $k }}: {{ $v | quote }}
|
|
{{- end }}
|
|
spec:
|
|
ingressClassName: {{ .Values.ingress.className | default "nginx" | quote }}
|
|
tls:
|
|
{{- range .Values.ingress.tls }}
|
|
- hosts: {{ toYaml .hosts | nindent 6 }}
|
|
secretName: {{ .secretName }}
|
|
{{- end }}
|
|
rules:
|
|
{{- range .Values.ingress.hosts }}
|
|
- host: {{ .host }}
|
|
http:
|
|
paths:
|
|
- path: {{ .path | default "/" }}
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ include "stellaops.fullname" $ }}-gateway
|
|
port:
|
|
number: {{ .servicePort | default 80 }}
|
|
{{- end }}
|
|
{{- end }}
|