Skip to content
Snippets Groups Projects
Commit ea26b1d5e2f7 authored by Xavier Garnier's avatar Xavier Garnier :bicyclist:
Browse files

feat: add additionalIngresses

parent e568ff10c72e
No related branches found
No related tags found
1 merge request!5StatefulSet and additionalIngresses
{{- range .Values.additionalIngresses }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $.Release.Name }}-{{ .name }}
labels:
app.kubernetes.io/name: {{ $.Values.appName }}
app.kubernetes.io/instance: {{ $.Release.Name }}
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
{{- with $.Values.ingress.clusterIssuer }}
cert-manager.io/cluster-issuer: {{ . }}
{{- end }}
{{- with .annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
tls:
- hosts:
- {{ .host }}
{{- if $.Values.ingress.tlsSecret }}
secretName: {{ $.Release.Name }}-{{ .name }}-tls
{{- end }}
rules:
- host: {{ .host }}
http:
paths:
- path: {{ .path }}
pathType: Prefix
backend:
service:
name: {{ $.Release.Name }}
port:
number: {{ $.Values.port }}
{{- end }}
......@@ -58,6 +58,13 @@
path: /
annotations: {}
# Additional ingresses
additionalIngresses: []
# - name: toto
# host: toto.fr
# path: /toto
# annotations: {}
# Readiness probe
readinessProbe:
enabled: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment