ingress tls wrapper

This commit is contained in:
Dmitry Skokov 2020-10-19 14:44:25 +03:00
parent 392fa3c491
commit 7e47fd6536
10 changed files with 53 additions and 1 deletions

View File

@ -5,5 +5,5 @@ ingress:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
# kubernetes.io/tls-acme: "true"
host: api.rbk.dev
host: rbkmoney.standoff.city
path: /web(/|$)(.*)

View File

@ -1 +1,7 @@
replicaCount: 1
ingress:
host: rbkmoney.standoff.city
paths:
- path: /privdoc/v0
- path: /payres/v0

View File

@ -20,6 +20,10 @@ templates:
missingFileHandler: Warn
values:
- config/{{`{{ .Release.Name }}`}}/values.yaml
- ingress:
tls:
enabled: true
secret: default/standoff
timeout: 600

View File

@ -14,3 +14,9 @@ spec:
backend:
serviceName: {{ include "capi-pcidss-v1.fullname" . }}
servicePort: {{ .Values.service.port }}
{{ if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.host}}
secretName: {{ .Values.ingress.tls.secret}}
{{- end -}}

View File

@ -14,3 +14,9 @@ spec:
backend:
serviceName: {{ include "capi-pcidss-v2.fullname" . }}
servicePort: {{ .Values.service.port }}
{{ if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ .Values.ingress.tls.secret }}
{{- end -}}

View File

@ -13,3 +13,9 @@ spec:
backend:
serviceName: {{ include "capi-v1.fullname" . }}
servicePort: {{ .Values.service.port }}
{{ if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ .Values.ingress.tls.secret }}
{{- end -}}

View File

@ -13,3 +13,9 @@ spec:
backend:
serviceName: {{ include "capi-v2.fullname" . }}
servicePort: {{ .Values.service.port }}
{{ if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ .Values.ingress.tls.secret }}
{{- end -}}

View File

@ -19,4 +19,10 @@ spec:
backend:
serviceName: {{ include "payform.fullname" . }}
servicePort: {{ .Values.service.port }}
{{ if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ .Values.ingress.tls.secret }}
{{- end -}}
{{- end -}}

View File

@ -14,3 +14,9 @@ spec:
backend:
serviceName: {{ include "wapi-pcidss-v0.fullname" . }}
servicePort: {{ .Values.service.port }}
{{ if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ .Values.ingress.tls.secret }}
{{- end -}}

View File

@ -13,3 +13,9 @@ spec:
backend:
serviceName: {{ include "wapi.fullname" . }}
servicePort: {{ .Values.service.ports.ingressPort }}
{{ if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ .Values.ingress.tls.secret }}
{{- end -}}