-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Ingress with SSL passthrough (#271)
- Deploy Ingress resources for NuoDB Admin REST service, NuoDB Admin SQL, and TEs - Automatically inject external-address and external-port TE labels if database.te.ingress.enabled is true - Bump k8s.io/api to v0.19.0 to get support for Ingress v1
- Loading branch information
1 parent
9fce815
commit 22984c9
Showing
19 changed files
with
589 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{{- if .Values.admin.ingress }} | ||
{{- if eq (include "defaultfalse" .Values.admin.ingress.enabled) "true" }} | ||
{{- if .Values.admin.ingress.api }} | ||
{{- if .Values.admin.ingress.api.hostname }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ template "admin.fullname" . }}-api | ||
annotations: | ||
{{- toYaml .Values.admin.ingress.api.annotations | trim | nindent 4 }} | ||
labels: | ||
app: {{ template "admin.fullname" . }} | ||
chart: {{ template "admin.chart" . }} | ||
release: {{ .Release.Name | quote }} | ||
domain: {{ .Values.admin.domain }} | ||
group: nuodb | ||
spec: | ||
{{- if .Values.admin.ingress.api.className }} | ||
ingressClassName: {{ .Values.admin.ingress.api.className | quote }} | ||
{{- end }} | ||
rules: | ||
- host: {{ .Values.admin.ingress.api.hostname | quote }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ .Values.admin.domain }}-{{ .Values.admin.serviceSuffix.clusterip }} | ||
port: | ||
name: 8888-tcp | ||
{{- end }} | ||
{{- end }} | ||
{{- if .Values.admin.ingress.sql }} | ||
{{- if .Values.admin.ingress.sql.hostname }} | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ template "admin.fullname" . }} | ||
annotations: | ||
{{- toYaml .Values.admin.ingress.sql.annotations | trim | nindent 4 }} | ||
labels: | ||
app: {{ template "admin.fullname" . }} | ||
chart: {{ template "admin.chart" . }} | ||
release: {{ .Release.Name | quote }} | ||
domain: {{ .Values.admin.domain }} | ||
group: nuodb | ||
spec: | ||
{{- if .Values.admin.ingress.sql.className }} | ||
ingressClassName: {{ .Values.admin.ingress.sql.className | quote }} | ||
{{- end }} | ||
rules: | ||
- host: {{ .Values.admin.ingress.sql.hostname | quote }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ .Values.admin.domain }}-{{ .Values.admin.serviceSuffix.clusterip }} | ||
port: | ||
name: 48004-tcp | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{{- if .Values.database.te.ingress }} | ||
{{- if eq (include "defaultfalse" .Values.database.te.ingress.enabled) "true" }} | ||
{{- if .Values.database.te.ingress.hostname }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ template "database.fullname" . }} | ||
annotations: | ||
{{- toYaml .Values.database.te.ingress.annotations | trim | nindent 4 }} | ||
labels: | ||
app: {{ template "database.fullname" . }} | ||
group: nuodb | ||
database: {{ .Values.database.name }} | ||
domain: {{ .Values.admin.domain }} | ||
chart: {{ template "database.chart" . }} | ||
release: {{ .Release.Name | quote }} | ||
spec: | ||
{{- if .Values.database.te.ingress.className }} | ||
ingressClassName: {{ .Values.database.te.ingress.className | quote }} | ||
{{- end }} | ||
rules: | ||
- host: {{ .Values.database.te.ingress.hostname | quote }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ template "database.fullname" . }}-{{ default .Values.admin.serviceSuffix.clusterip .Values.database.serviceSuffix.clusterip }} | ||
port: | ||
name: 48006-tcp | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.