Browse Source

changed ingress tls secret

pull/116/head
selmankoc 4 years ago
parent
commit
72cc768273
  1. 2
      etc/k8s/deploy-staging.sh
  2. 5
      etc/k8s/eshoponabp/charts/administration/templates/administration-ingress.yaml
  3. 7
      etc/k8s/eshoponabp/charts/authserver/templates/authserver-ingress.yaml
  4. 5
      etc/k8s/eshoponabp/charts/basket/templates/basket-ingress.yaml
  5. 5
      etc/k8s/eshoponabp/charts/catalog/templates/catalog-ingress.yaml
  6. 5
      etc/k8s/eshoponabp/charts/gateway-web-public/templates/gateway-web-public-ingress.yaml
  7. 5
      etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-ingress.yaml
  8. 5
      etc/k8s/eshoponabp/charts/identity/templates/identity-ingress.yaml
  9. 5
      etc/k8s/eshoponabp/charts/ordering/templates/ordering-ingress.yaml
  10. 5
      etc/k8s/eshoponabp/charts/payment/templates/payment-ingress.yaml
  11. 13
      etc/k8s/eshoponabp/charts/public-web/templates/public-web-ingress.yaml
  12. 5
      etc/k8s/eshoponabp/charts/web/templates/web-ingress.yaml
  13. 2
      etc/k8s/eshoponabp/values.azure.yaml
  14. 10
      etc/k8s/eshoponabp/values.yaml

2
etc/k8s/deploy-staging.sh

@ -1 +1 @@
helm upgrade --install eshop-st eshoponabp --namespace eshop --create-namespace helm upgrade --install eshop-st eshoponabp -f ./eshoponabp/values.yaml --namespace eshop --create-namespace

5
etc/k8s/eshoponabp/charts/administration/templates/administration-ingress.yaml

@ -13,12 +13,17 @@ spec:
tls: tls:
- hosts: - hosts:
- {{ .Values.ingress.host }} - {{ .Values.ingress.host }}
{{- if eq .Release.Name "eshop-az" }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
{{- else }}
secretName: {{ .Values.ingress.tlsSecret }}
{{- end }}
rules: rules:
- host: "{{ .Values.ingress.host }}" - host: "{{ .Values.ingress.host }}"
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:

7
etc/k8s/eshoponabp/charts/authserver/templates/authserver-ingress.yaml

@ -8,19 +8,22 @@ metadata:
nginx.ingress.kubernetes.io/proxy-buffer-size: 32k nginx.ingress.kubernetes.io/proxy-buffer-size: 32k
nginx.ingress.kubernetes.io/proxy-buffers-number: "8" nginx.ingress.kubernetes.io/proxy-buffers-number: "8"
cert-manager.io/cluster-issuer: letsencrypt cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_input_headers "from-ingress: true";
spec: spec:
ingressClassName: nginx ingressClassName: nginx
tls: tls:
- hosts: - hosts:
- {{ .Values.ingress.host }} - {{ .Values.ingress.host }}
{{- if eq .Release.Name "eshop-az" }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
{{- else }}
secretName: {{ .Values.ingress.tlsSecret }}
{{- end }}
rules: rules:
- host: "{{ .Values.ingress.host }}" - host: "{{ .Values.ingress.host }}"
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:

5
etc/k8s/eshoponabp/charts/basket/templates/basket-ingress.yaml

@ -13,12 +13,17 @@ spec:
tls: tls:
- hosts: - hosts:
- {{ .Values.ingress.host }} - {{ .Values.ingress.host }}
{{- if eq .Release.Name "eshop-az" }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
{{- else }}
secretName: {{ .Values.ingress.tlsSecret }}
{{- end }}
rules: rules:
- host: "{{ .Values.ingress.host }}" - host: "{{ .Values.ingress.host }}"
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:

5
etc/k8s/eshoponabp/charts/catalog/templates/catalog-ingress.yaml

@ -13,12 +13,17 @@ spec:
tls: tls:
- hosts: - hosts:
- {{ .Values.ingress.host }} - {{ .Values.ingress.host }}
{{- if eq .Release.Name "eshop-az" }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
{{- else }}
secretName: {{ .Values.ingress.tlsSecret }}
{{- end }}
rules: rules:
- host: "{{ .Values.ingress.host }}" - host: "{{ .Values.ingress.host }}"
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:

5
etc/k8s/eshoponabp/charts/gateway-web-public/templates/gateway-web-public-ingress.yaml

@ -13,12 +13,17 @@ spec:
tls: tls:
- hosts: - hosts:
- {{ .Values.ingress.host }} - {{ .Values.ingress.host }}
{{- if eq .Release.Name "eshop-az" }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
{{- else }}
secretName: {{ .Values.ingress.tlsSecret }}
{{- end }}
rules: rules:
- host: "{{ .Values.ingress.host }}" - host: "{{ .Values.ingress.host }}"
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:

5
etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-ingress.yaml

@ -13,12 +13,17 @@ spec:
tls: tls:
- hosts: - hosts:
- {{ .Values.ingress.host }} - {{ .Values.ingress.host }}
{{- if eq .Release.Name "eshop-az" }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
{{- else }}
secretName: {{ .Values.ingress.tlsSecret }}
{{- end }}
rules: rules:
- host: "{{ .Values.ingress.host }}" - host: "{{ .Values.ingress.host }}"
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:

5
etc/k8s/eshoponabp/charts/identity/templates/identity-ingress.yaml

@ -13,12 +13,17 @@ spec:
tls: tls:
- hosts: - hosts:
- {{ .Values.ingress.host }} - {{ .Values.ingress.host }}
{{- if eq .Release.Name "eshop-az" }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
{{- else }}
secretName: {{ .Values.ingress.tlsSecret }}
{{- end }}
rules: rules:
- host: "{{ .Values.ingress.host }}" - host: "{{ .Values.ingress.host }}"
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:

5
etc/k8s/eshoponabp/charts/ordering/templates/ordering-ingress.yaml

@ -13,12 +13,17 @@ spec:
tls: tls:
- hosts: - hosts:
- {{ .Values.ingress.host }} - {{ .Values.ingress.host }}
{{- if eq .Release.Name "eshop-az" }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
{{- else }}
secretName: {{ .Values.ingress.tlsSecret }}
{{- end }}
rules: rules:
- host: "{{ .Values.ingress.host }}" - host: "{{ .Values.ingress.host }}"
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:

5
etc/k8s/eshoponabp/charts/payment/templates/payment-ingress.yaml

@ -13,12 +13,17 @@ spec:
tls: tls:
- hosts: - hosts:
- {{ .Values.ingress.host }} - {{ .Values.ingress.host }}
{{- if eq .Release.Name "eshop-az" }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
{{- else }}
secretName: {{ .Values.ingress.tlsSecret }}
{{- end }}
rules: rules:
- host: "{{ .Values.ingress.host }}" - host: "{{ .Values.ingress.host }}"
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:

13
etc/k8s/eshoponabp/charts/public-web/templates/public-web-ingress.yaml

@ -7,9 +7,6 @@ metadata:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-buffer-size: 32k nginx.ingress.kubernetes.io/proxy-buffer-size: 32k
nginx.ingress.kubernetes.io/proxy-buffers-number: "8" nginx.ingress.kubernetes.io/proxy-buffers-number: "8"
{{- if eq .Release.Name "eshop-az" }}
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
{{- end }}
cert-manager.io/cluster-issuer: letsencrypt cert-manager.io/cluster-issuer: letsencrypt
spec: spec:
ingressClassName: nginx ingressClassName: nginx
@ -17,18 +14,16 @@ spec:
- hosts: - hosts:
- {{ .Values.ingress.host }} - {{ .Values.ingress.host }}
{{- if eq .Release.Name "eshop-az" }} {{- if eq .Release.Name "eshop-az" }}
- {{ print "www." .Values.ingress.host }}
{{- end }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
rules:
{{- if eq .Release.Name "eshop-az" }}
- host: "{{ print "www." .Values.ingress.host }}"
{{- else }} {{- else }}
- host: "{{ .Values.ingress.host }}" secretName: {{ .Values.ingress.tlsSecret }}
{{- end }} {{- end }}
rules:
- host: "{{ .Values.ingress.host }}"
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:

5
etc/k8s/eshoponabp/charts/web/templates/web-ingress.yaml

@ -13,12 +13,17 @@ spec:
tls: tls:
- hosts: - hosts:
- {{ .Values.ingress.host }} - {{ .Values.ingress.host }}
{{- if eq .Release.Name "eshop-az" }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
{{- else }}
secretName: {{ .Values.ingress.tlsSecret }}
{{- end }}
rules: rules:
- host: "{{ .Values.ingress.host }}" - host: "{{ .Values.ingress.host }}"
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:

2
etc/k8s/eshoponabp/values.azure.yaml

@ -50,7 +50,7 @@ public-web:
elasticsearchHost: eshop-az-elasticsearch elasticsearchHost: eshop-az-elasticsearch
ingress: ingress:
host: eshoponabp.com host: www.eshoponabp.com
image: image:
repository: "volocr.azurecr.io/eshoponabp/app-publicweb" repository: "volocr.azurecr.io/eshoponabp/app-publicweb"
tag: latest tag: latest

10
etc/k8s/eshoponabp/values.yaml

@ -31,6 +31,7 @@ web:
requireHttpsMetadata: "false" requireHttpsMetadata: "false"
ingress: ingress:
host: eshop-st-web host: eshop-st-web
tlsSecret: eshop-wildcard-tls
image: image:
repository: "eshoponabp/app-web" repository: "eshoponabp/app-web"
tag: latest tag: latest
@ -49,6 +50,7 @@ public-web:
elasticsearchHost: eshop-st-elasticsearch elasticsearchHost: eshop-st-elasticsearch
ingress: ingress:
host: eshop-st-public-web host: eshop-st-public-web
tlsSecret: eshop-wildcard-tls
image: image:
repository: "eshoponabp/app-publicweb" repository: "eshoponabp/app-publicweb"
tag: latest tag: latest
@ -84,6 +86,7 @@ identity:
paymentServiceRootUrl: https://eshop-st-payment/ paymentServiceRootUrl: https://eshop-st-payment/
ingress: ingress:
host: eshop-st-identity host: eshop-st-identity
tlsSecret: eshop-wildcard-tls
image: image:
repository: "eshoponabp/service-identity" repository: "eshoponabp/service-identity"
tag: latest tag: latest
@ -111,6 +114,7 @@ administration:
authority: https://eshop-st-authserver authority: https://eshop-st-authserver
ingress: ingress:
host: eshop-st-administration host: eshop-st-administration
tlsSecret: eshop-wildcard-tls
image: image:
repository: "eshoponabp/service-administration" repository: "eshoponabp/service-administration"
tag: latest tag: latest
@ -132,6 +136,7 @@ gateway-web:
elasticsearchHost: eshop-st-elasticsearch elasticsearchHost: eshop-st-elasticsearch
ingress: ingress:
host: eshop-st-gateway-web host: eshop-st-gateway-web
tlsSecret: eshop-wildcard-tls
image: image:
repository: "eshoponabp/gateway-web" repository: "eshoponabp/gateway-web"
tag: latest tag: latest
@ -162,6 +167,7 @@ gateway-web-public:
elasticsearchHost: eshop-st-elasticsearch elasticsearchHost: eshop-st-elasticsearch
ingress: ingress:
host: eshop-st-gateway-web-public host: eshop-st-gateway-web-public
tlsSecret: eshop-wildcard-tls
image: image:
repository: "eshoponabp/gateway-web-public" repository: "eshoponabp/gateway-web-public"
tag: latest tag: latest
@ -202,6 +208,7 @@ basket:
catalogGrpcUrl: http://eshop-st-catalog:81 catalogGrpcUrl: http://eshop-st-catalog:81
ingress: ingress:
host: eshop-st-basket host: eshop-st-basket
tlsSecret: eshop-wildcard-tls
image: image:
repository: "eshoponabp/service-basket" repository: "eshoponabp/service-basket"
tag: latest tag: latest
@ -230,6 +237,7 @@ catalog:
grpcProtocols: Http2 grpcProtocols: Http2
ingress: ingress:
host: eshop-st-catalog host: eshop-st-catalog
tlsSecret: eshop-wildcard-tls
image: image:
repository: "eshoponabp/service-catalog" repository: "eshoponabp/service-catalog"
tag: latest tag: latest
@ -253,6 +261,7 @@ ordering:
elasticsearchHost: eshop-st-elasticsearch elasticsearchHost: eshop-st-elasticsearch
ingress: ingress:
host: eshop-st-ordering host: eshop-st-ordering
tlsSecret: eshop-wildcard-tls
image: image:
repository: "eshoponabp/service-ordering" repository: "eshoponabp/service-ordering"
tag: latest tag: latest
@ -276,6 +285,7 @@ payment:
elasticsearchHost: eshop-st-elasticsearch elasticsearchHost: eshop-st-elasticsearch
ingress: ingress:
host: eshop-st-payment host: eshop-st-payment
tlsSecret: eshop-wildcard-tls
image: image:
repository: "eshoponabp/service-payment" repository: "eshoponabp/service-payment"
tag: latest tag: latest

Loading…
Cancel
Save