chore(helm): add ingress configuration

This commit is contained in:
2025-01-18 12:00:00 -05:00
parent 1b9ab0f9e6
commit 51d9aa09f0

View File

@@ -0,0 +1,55 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "incidentops.fullname" . }}
labels:
{{- include "incidentops.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: /api
pathType: Prefix
backend:
service:
name: {{ include "incidentops.fullname" . }}-api
port:
number: {{ .Values.api.port }}
- path: /v1
pathType: Prefix
backend:
service:
name: {{ include "incidentops.fullname" . }}-api
port:
number: {{ .Values.api.port }}
- path: /healthz
pathType: Exact
backend:
service:
name: {{ include "incidentops.fullname" . }}-api
port:
number: {{ .Values.api.port }}
- path: /readyz
pathType: Exact
backend:
service:
name: {{ include "incidentops.fullname" . }}-api
port:
number: {{ .Values.api.port }}
- path: /
pathType: Prefix
backend:
service:
name: {{ include "incidentops.fullname" . }}-web
port:
number: {{ .Values.web.port }}
{{- end }}