chore(helm): add ingress configuration
This commit is contained in:
55
helm/incidentops/templates/ingress.yaml
Normal file
55
helm/incidentops/templates/ingress.yaml
Normal 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 }}
|
||||
Reference in New Issue
Block a user