dockers/examples/helm/templates/ingress.yaml
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "teable.nameBuilder" . -}}
{{- $commonName := include "common.name" . -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
namespace: {{ include "common.namespace" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.className }}
{{- if .Values.ingress.tls }}
tls:
- hosts:
- {{ .Values.ingress.hostname }}
secretName: {{ printf "%s-tls" .Values.ingress.hostname }}
{{- end }}
rules:
- host: {{ .Values.ingress.hostname | quote }}
http:
paths:
- path: {{ default "/" .Values.ingress.path }}
pathType: ImplementationSpecific
backend:
service:
name: {{ $fullName }}
port:
name: teable-port
{{- end }}