Chart charts/reuse-surface, namespace reuse, host reuse.coulomb.social, image gitea.coulomb.social/coulomb/reuse-surface, secret reuse-surface-env. Makefile targets reuse-dry-run/deploy/status/logs.
28 lines
782 B
YAML
28 lines
782 B
YAML
{{- if .Values.ingress.enabled }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "reuse.fullname" . }}
|
|
labels: {{- include "reuse.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{- toYaml .Values.ingress.annotations | nindent 4 }}
|
|
spec:
|
|
ingressClassName: {{ .Values.ingress.className }}
|
|
{{- if .Values.ingress.tls }}
|
|
tls:
|
|
- hosts:
|
|
- {{ .Values.ingress.host }}
|
|
secretName: {{ include "reuse.fullname" . }}-tls
|
|
{{- end }}
|
|
rules:
|
|
- host: {{ .Values.ingress.host }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ include "reuse.fullname" . }}
|
|
port:
|
|
number: {{ .Values.service.port }}
|
|
{{- end }} |