Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Add legacy ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
SuslikDaRete committed Jul 7, 2022
1 parent 58efacd commit 66627c1
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
4 changes: 3 additions & 1 deletion chart/templates/network/ing.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.ingress }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
Expand All @@ -11,7 +12,7 @@ spec:
tls:
- hosts:
- {{ .Values.ingress.host | quote }}
secretName: {{ .Values.ingress.tls.secretName }}
secretName: {{ .Values.tls.secretName }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
Expand All @@ -21,3 +22,4 @@ spec:
backend:
serviceName: {{ include "storage.fullname" . }}-cluster
servicePort: {{ .Values.clusterService.ports.http }}
{{- end }}
23 changes: 23 additions & 0 deletions chart/templates/network/legacy-ing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{- if .Values.legacyIngress }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ include "storage.fullname" . }}-legacy
annotations:
kubernetes.io/ingress.class: nginx
labels:
{{- include "storage.labels" . | nindent 4 }}
spec:
tls:
- hosts:
- {{ .Values.legacyIngress.host | quote }}
secretName: {{ .Values.tls.secretName }}
rules:
- host: {{ .Values.legacyIngress.host | quote }}
http:
paths:
- path: /
backend:
serviceName: {{ include "storage.fullname" . }}-cluster
servicePort: {{ .Values.clusterService.ports.http }}
{{- end }}
12 changes: 8 additions & 4 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ clusterService:
ports:
http: 8080

ingress:
host: example.org
tls:
secretName: tls-certificates
tls:
secretName: tls-certificates

# ingress:
# host: example.org

# legacyIngress:
# host: example.org

0 comments on commit 66627c1

Please sign in to comment.