Browse Source

Revisit naming

pull/51/head
Halil İbrahim Kalkan 5 years ago
parent
commit
60f422076b
  1. 4
      etc/k8s/helm-chart/eventhub/charts/account/templates/account-ingress.yaml
  2. 2
      etc/k8s/helm-chart/eventhub/charts/api/templates/api-ingress.yaml
  3. 6
      etc/k8s/helm-chart/eventhub/charts/dbmigrator/templates/migrator.yaml
  4. 4
      etc/k8s/helm-chart/eventhub/charts/www/templates/www-ingress.yaml
  5. 10
      etc/k8s/helm-chart/eventhub/templates/_helpers.tpl
  6. 20
      etc/k8s/helm-chart/eventhub/values.yaml

4
etc/k8s/helm-chart/eventhub/charts/account/templates/account-ingress.yaml

@ -12,10 +12,10 @@ metadata:
spec:
tls:
- hosts:
- {{ .Values.global.accountUrl }}
- {{ .Values.global.accountDomain }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
rules:
- host: "{{ .Values.global.accountUrl }}"
- host: "{{ .Values.global.accountDomain }}"
http:
paths:
- path: /

2
etc/k8s/helm-chart/eventhub/charts/api/templates/api-ingress.yaml

@ -9,7 +9,7 @@ metadata:
nginx.ingress.kubernetes.io/proxy-buffers-number: "{{ .Values.global.nginxProxyBuffersNumber }}"
spec:
rules:
- host: "{{ .Values.global.apiUrl }}"
- host: "{{ .Values.global.apiDomain }}"
http:
paths:
- path: /

6
etc/k8s/helm-chart/eventhub/charts/dbmigrator/templates/migrator.yaml

@ -15,10 +15,10 @@ spec:
- name: "ConnectionStrings__Default"
value: {{ .Values.global.defaultConnString }}
- name: "IdentityServer__Clients__EventHub_Web__RootUrl"
value: {{ .Values.global.wwwUrlFull }}
value: {{ .Values.global.wwwUrl }}
- name: "IdentityServer__Clients__EventHub_Blazor__RootUrl"
value: {{ .Values.global.adminUrlFull }}
value: {{ .Values.global.adminUrl }}
- name: "IdentityServer__Clients__EventHub_Swagger__RootUrl"
value: {{ .Values.global.apiUrlFull }}
value: {{ .Values.global.apiUrl }}
restartPolicy: Never
backoffLimit: 4

4
etc/k8s/helm-chart/eventhub/charts/www/templates/www-ingress.yaml

@ -10,10 +10,10 @@ metadata:
spec:
tls:
- hosts:
- {{ .Values.global.wwwUrl }}
- {{ .Values.global.wwwDomain }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
rules:
- host: "{{ .Values.global.wwwUrl }}"
- host: "{{ .Values.global.wwwDomain }}"
http:
paths:
- path: /

10
etc/k8s/helm-chart/eventhub/templates/_helpers.tpl

@ -1,14 +1,14 @@
{{- define "eventhub.global.env" -}}
- name: "AppUrls__Account"
value: "{{ .Values.global.accountUrlFull }}"
value: "{{ .Values.global.accountUrl }}"
- name: "AppUrls__Www"
value: "{{ .Values.global.wwwUrlFull }}"
value: "{{ .Values.global.wwwUrl }}"
- name: "AppUrls__Api"
value: "{{ .Values.global.apiUrlFull }}"
value: "{{ .Values.global.apiUrl }}"
- name: "AppUrls__Admin"
value: "{{ .Values.global.adminUrlFull }}"
value: "{{ .Values.global.adminUrl }}"
- name: "AppUrls__AdminApi"
value: "{{ .Values.global.adminApiUrlFull }}"
value: "{{ .Values.global.adminApiUrl }}"
- name: "Redis__Configuration"
value: "{{ .Values.global.redisConfiguration }}"
- name: "AuthServer__Authority"

20
etc/k8s/helm-chart/eventhub/values.yaml

@ -1,14 +1,14 @@
global:
accountUrl: eh-st-account
accountUrlFull: https://eh-st-account
apiUrl: eh-st-api
apiUrlFull: https://eh-st-api
wwwUrl: eh-st-www
wwwUrlFull: "https://eh-st-www"
adminUrl: eh-st-admin
adminUrlFull: https://eh-st-admin
adminApiApiUrl: eh-st-admin-api
adminApiUrlFull: https://eh-st-admin-api
accountDomain: eh-st-account
accountUrl: https://eh-st-account
apiDomain: eh-st-api
apiUrl: https://eh-st-api
wwwDomain: eh-st-www
wwwUrl: "https://eh-st-www"
adminDomain: eh-st-admin
adminUrl: https://eh-st-admin
adminApiDomain: eh-st-admin-api
adminApiUrl: https://eh-st-admin-api
nginxProxyBufferSize: "32k"
nginxProxyBuffersNumber: "8"
defaultConnString: "Host=eh-st-postgresql;Port=5435;Database=EventHub;Username=root;Password=root"

Loading…
Cancel
Save