Browse Source

fix intern url

pull/114/head
selmankoc 4 years ago
parent
commit
5a43034a56
  1. 4
      etc/azure/k8s/eshoponabp/charts/mongodb/templates/mongodb-deployment.yaml
  2. 4
      etc/azure/k8s/eshoponabp/charts/postgres/templates/postgres-deployment.yaml
  3. 6
      etc/azure/k8s/eshoponabp/charts/public-web/templates/public-web-ingress.yaml
  4. 6
      etc/azure/k8s/eshoponabp/charts/web/templates/web-ingress.yaml
  5. 6
      etc/k8s/eshoponabp/charts/gateway-web-public/templates/gateway-web-public-ingress.yaml
  6. 6
      etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-ingress.yaml
  7. 4
      etc/k8s/eshoponabp/charts/mongodb/templates/mongodb-deployment.yaml
  8. 4
      etc/k8s/eshoponabp/charts/postgres/templates/postgres-deployment.yaml
  9. 6
      etc/k8s/eshoponabp/charts/public-web/templates/public-web-ingress.yaml
  10. 113
      etc/k8s/eshoponabp/values.azure.yaml

4
etc/azure/k8s/eshoponabp/charts/mongodb/templates/mongodb-deployment.yaml

@ -16,7 +16,7 @@ spec:
containers:
- image: mongo
name: {{ .Release.Name }}-{{ .Chart.Name }}
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
volumeMounts:
- mountPath: "/data/db"
name: {{ .Release.Name }}-{{ .Chart.Name }}-database-volume
@ -25,7 +25,7 @@ spec:
ports:
- name: mongo
containerPort: 27017
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
volumeClaimTemplates:
- metadata:
name: {{ .Release.Name }}-{{ .Chart.Name }}-database-volume

4
etc/azure/k8s/eshoponabp/charts/postgres/templates/postgres-deployment.yaml

@ -16,7 +16,7 @@ spec:
containers:
- image: postgres
name: {{ .Release.Name }}-{{ .Chart.Name }}
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
volumeMounts:
- mountPath: "/var/opt/postgres"
name: {{ .Release.Name }}-{{ .Chart.Name }}-database-volume
@ -28,7 +28,7 @@ spec:
env:
- name: POSTGRES_PASSWORD
value: "myPassw0rd"
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
volumeClaimTemplates:
- metadata:
name: {{ .Release.Name }}-{{ .Chart.Name }}-database-volume

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

@ -8,7 +8,7 @@ metadata:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-buffer-size: 32k
nginx.ingress.kubernetes.io/proxy-buffers-number: "8"
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
{{- end }}
cert-manager.io/cluster-issuer: letsencrypt
@ -17,12 +17,12 @@ spec:
tls:
- hosts:
- {{ .Values.ingress.host }}
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
- {{ print "www." .Values.ingress.host }}
{{- end }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
rules:
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
- host: "{{ print "www." .Values.ingress.host }}"
{{- else }}
- host: "{{ .Values.ingress.host }}"

6
etc/azure/k8s/eshoponabp/charts/web/templates/web-ingress.yaml

@ -8,7 +8,7 @@ metadata:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-buffer-size: 32k
nginx.ingress.kubernetes.io/proxy-buffers-number: "8"
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
{{- end }}
cert-manager.io/cluster-issuer: letsencrypt
@ -17,12 +17,12 @@ spec:
tls:
- hosts:
- {{ .Values.ingress.host }}
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
- {{ print "www." .Values.ingress.host }}
{{- end }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
rules:
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
- host: "{{ print "www." .Values.ingress.host }}"
{{- else }}
- host: "{{ .Values.ingress.host }}"

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

@ -7,7 +7,7 @@ metadata:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-buffer-size: 32k
nginx.ingress.kubernetes.io/proxy-buffers-number: "8"
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
{{- end }}
cert-manager.io/cluster-issuer: letsencrypt
@ -16,12 +16,12 @@ spec:
tls:
- hosts:
- {{ .Values.ingress.host }}
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
- {{ print "www." .Values.ingress.host }}
{{- end }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
rules:
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
- host: "{{ print "www." .Values.ingress.host }}"
{{- else }}
- host: "{{ .Values.ingress.host }}"

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

@ -7,7 +7,7 @@ metadata:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-buffer-size: 32k
nginx.ingress.kubernetes.io/proxy-buffers-number: "8"
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
{{- end }}
cert-manager.io/cluster-issuer: letsencrypt
@ -16,12 +16,12 @@ spec:
tls:
- hosts:
- {{ .Values.ingress.host }}
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
- {{ print "www." .Values.ingress.host }}
{{- end }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
rules:
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
- host: "{{ print "www." .Values.ingress.host }}"
{{- else }}
- host: "{{ .Values.ingress.host }}"

4
etc/k8s/eshoponabp/charts/mongodb/templates/mongodb-deployment.yaml

@ -16,7 +16,7 @@ spec:
containers:
- image: "mongo:4.2"
name: {{ .Release.Name }}-{{ .Chart.Name }}
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
volumeMounts:
- mountPath: "/data/db"
name: {{ .Release.Name }}-{{ .Chart.Name }}-database-volume
@ -25,7 +25,7 @@ spec:
ports:
- name: mongo
containerPort: 27017
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
volumeClaimTemplates:
- metadata:
name: {{ .Release.Name }}-{{ .Chart.Name }}-database-volume

4
etc/k8s/eshoponabp/charts/postgres/templates/postgres-deployment.yaml

@ -16,7 +16,7 @@ spec:
containers:
- image: "postgres:14.1"
name: {{ .Release.Name }}-{{ .Chart.Name }}
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
volumeMounts:
- mountPath: "/var/opt/postgres"
name: {{ .Release.Name }}-{{ .Chart.Name }}-database-volume
@ -28,7 +28,7 @@ spec:
env:
- name: POSTGRES_PASSWORD
value: "myPassw0rd"
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
volumeClaimTemplates:
- metadata:
name: {{ .Release.Name }}-{{ .Chart.Name }}-database-volume

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

@ -7,7 +7,7 @@ metadata:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-buffer-size: 32k
nginx.ingress.kubernetes.io/proxy-buffers-number: "8"
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
{{- end }}
cert-manager.io/cluster-issuer: letsencrypt
@ -16,12 +16,12 @@ spec:
tls:
- hosts:
- {{ .Values.ingress.host }}
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
- {{ print "www." .Values.ingress.host }}
{{- end }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
rules:
{{- if eq .Release.Name "es-az" }}
{{- if eq .Release.Name "eshop-az" }}
- host: "{{ print "www." .Values.ingress.host }}"
{{- else }}
- host: "{{ .Values.ingress.host }}"

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

@ -4,13 +4,16 @@ authserver:
selfUrl: https://auth.eshoponabp.com
corsOrigins: https://www.gateway.eshoponabp.com,https://www.gateway-public.eshoponabp.com,https://identity.eshoponabp.com,https://administration.eshoponabp.com,https://basket.eshoponabp.com,https://catalog.eshoponabp.com,https://order.eshoponabp.com,https://payment.eshoponabp.com
allowedRedirectUrls: https://admin.eshoponabp.com
authServer:
authority: https://auth.eshoponabp.com
requireHttpsMetadata: "false"
connectionStrings:
administrationService: "Host=es-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
identityService: "Host=es-az-postgresdb;Port=5432;Database=EShopOnAbp_Identity;User ID=postgres;password=myPassw0rd;Pooling=false"
administrationService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
identityService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Identity;User ID=postgres;password=myPassw0rd;Pooling=false"
dotnetEnv: Production
redisHost: es-az-redis
rabbitmqHost: es-az-rabbitmq
elasticsearchHost: es-az-elasticsearch
redisHost: eshop-az-redis
rabbitmqHost: eshop-az-rabbitmq
elasticsearchHost: eshop-az-elasticsearch
ingress:
host: auth.eshoponabp.com
tlsSecret: eshop-wildcard-tls
@ -22,7 +25,7 @@ authserver:
web:
config:
selfUrl: https://admin.eshoponabp.com
gatewayUrl: https://www.gateway.eshoponabp.com
gatewayUrl: http://eshop-az-gateway-web
ingress:
host: admin.eshoponabp.com
image:
@ -33,14 +36,14 @@ web:
public-web:
config:
selfUrl: https://www.eshoponabp.com
gatewayUrl: https://www.gateway-public.eshoponabp.com
gatewayUrl: https://www.gateway-public.eshoponabp.com/
authServer:
authority: https://auth.eshoponabp.com
authority: https://auth.eshoponabp.com
requireHttpsMetadata: "false"
dotnetEnv: Production
redisHost: es-az-redis
rabbitmqHost: es-az-rabbitmq
elasticsearchHost: es-az-elasticsearch
redisHost: eshop-az-redis
rabbitmqHost: eshop-az-rabbitmq
elasticsearchHost: eshop-az-elasticsearch
ingress:
host: eshoponabp.com
image:
@ -53,17 +56,17 @@ identity:
selfUrl: https://identity.eshoponabp.com
corsOrigins: https://www.gateway.eshoponabp.com,https://www.gateway-public.eshoponabp.com
connectionStrings:
identityService: "Host=es-az-postgresdb;Port=5432;Database=EShopOnAbp_Identity;User ID=postgres;password=myPassw0rd;Pooling=false"
administrationService: "Host=es-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
identityService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Identity;User ID=postgres;password=myPassw0rd;Pooling=false"
administrationService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
authServer:
authority: https://auth.eshoponabp.com
authority: http://eshop-az-authserver
requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: Production
redisHost: es-az-redis
rabbitmqHost: es-az-rabbitmq
elasticsearchHost: es-az-elasticsearch
redisHost: eshop-az-redis
rabbitmqHost: eshop-az-rabbitmq
elasticsearchHost: eshop-az-elasticsearch
identityServerClients: # Seeded Clients
webRootUrl: https://admin.eshoponabp.com/
publicWebRootUrl: https://www.eshoponabp.com/
@ -88,9 +91,9 @@ administration:
selfUrl: https://administration.eshoponabp.com
corsOrigins: https://www.gateway.eshoponabp.com,https://www.gateway-public.eshoponabp.com,https://eshop-az-gateway-internal
connectionStrings:
administrationService: "Host=es-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
administrationService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
authServer:
authority: https://auth.eshoponabp.com
authority: http://eshop-az-authserver
requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
@ -98,9 +101,9 @@ administration:
abpIdentityBaseUrl: https://identity.eshoponabp.com
useCurrentToken: "false"
dotnetEnv: Production
redisHost: es-az-redis
rabbitmqHost: es-az-rabbitmq
elasticsearchHost: es-az-elasticsearch
redisHost: eshop-az-redis
rabbitmqHost: eshop-az-rabbitmq
elasticsearchHost: eshop-az-elasticsearch
synchedCommunication: # Used for server-to-server (client-credentials) communication with identityService for user permissions
authority: https://auth.eshoponabp.com
ingress:
@ -116,14 +119,14 @@ gateway-web:
corsOrigins: https://admin.eshoponabp.com
globalConfigurationBaseUrl: http://eshop-az-gateway-public
authServer:
authority: https://auth.eshoponabp.com
authority: http://eshop-az-authserver
requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: Production
redisHost: es-az-redis
rabbitmqHost: es-az-rabbitmq
elasticsearchHost: es-az-elasticsearch
redisHost: eshop-az-redis
rabbitmqHost: eshop-az-rabbitmq
elasticsearchHost: eshop-az-elasticsearch
ingress:
host: gateway.eshoponabp.com
image:
@ -131,7 +134,7 @@ gateway-web:
tag: latest
reRoutes:
accountService:
url: https://auth.eshoponabp.com
url: http://eshop-az-authserver
identityService:
url: http://eshop-az-identity
administrationService:
@ -142,14 +145,14 @@ gateway-web-public:
config:
selfUrl: https://www.gateway-public.eshoponabp.com
authServer:
authority: https://auth.eshoponabp.com
authority: http://eshop-az-authserver
requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: Production
redisHost: es-az-redis
rabbitmqHost: es-az-rabbitmq
elasticsearchHost: es-az-elasticsearch
redisHost: eshop-az-redis
rabbitmqHost: eshop-az-rabbitmq
elasticsearchHost: eshop-az-elasticsearch
ingress:
host: gateway-public.eshoponabp.com
image:
@ -157,7 +160,7 @@ gateway-web-public:
tag: latest
reRoutes:
accountService:
url: https://auth.eshoponabp.com
url: http://eshop-az-authserver
identityService:
url: http://eshop-az-identity
administrationService:
@ -177,16 +180,16 @@ basket:
selfUrl: https://basket.eshoponabp.com
corsOrigins: https://www.gateway.eshoponabp.com,https://www.gateway-public.eshoponabp.com,https://www.eshoponabp.com
connectionStrings:
administrationService: "Host=es-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
administrationService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
authServer:
authority: https://auth.eshoponabp.com
authority: http://eshop-az-authserver
requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: Production
redisHost: es-az-redis
rabbitmqHost: es-az-rabbitmq
elasticsearchHost: es-az-elasticsearch
redisHost: eshop-az-redis
rabbitmqHost: eshop-az-rabbitmq
elasticsearchHost: eshop-az-elasticsearch
remoteServices:
catalogBaseUrl: http://eshop-az-catalog
catalogGrpcUrl: http://eshop-az-catalog
@ -202,17 +205,17 @@ catalog:
selfUrl: https://catalog.eshoponabp.com
corsOrigins: https://www.gateway.eshoponabp.com,https://www.gateway-public.eshoponabp.com,https://www.eshoponabp.com,https://admin.eshoponabp.com
connectionStrings:
catalogService: "mongodb://es-az-mongodb/EShopOnAbp_Catalog"
administrationService: "Host=es-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
catalogService: "mongodb://eshop-az-mongodb/EShopOnAbp_Catalog"
administrationService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
authServer:
authority: https://auth.eshoponabp.com
authority: http://eshop-az-authserver
requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: Production
redisHost: es-az-redis
rabbitmqHost: es-az-rabbitmq
elasticsearchHost: es-az-elasticsearch
redisHost: eshop-az-redis
rabbitmqHost: eshop-az-rabbitmq
elasticsearchHost: eshop-az-elasticsearch
kestrel:
httpUrl: http://eshop-az-catalog:80
httpProtocols: Http1AndHttp2
@ -230,17 +233,17 @@ ordering:
selfUrl: https://order.eshoponabp.com
corsOrigins: https://www.gateway.eshoponabp.com,https://www.gateway-public.eshoponabp.com
connectionStrings:
orderingService: "Host=es-az-postgresdb;Port=5432;Database=EShopOnAbp_Ordering;User ID=postgres;password=myPassw0rd;Pooling=false"
administrationService: "Host=es-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
orderingService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Ordering;User ID=postgres;password=myPassw0rd;Pooling=false"
administrationService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
authServer:
authority: https://auth.eshoponabp.com
authority: http://eshop-az-authserver
requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: Production
redisHost: es-az-redis
rabbitmqHost: es-az-rabbitmq
elasticsearchHost: es-az-elasticsearch
redisHost: eshop-az-redis
rabbitmqHost: eshop-az-rabbitmq
elasticsearchHost: eshop-az-elasticsearch
ingress:
host: order.eshoponabp.com
image:
@ -253,17 +256,17 @@ payment:
selfUrl: https://payment.eshoponabp.com
corsOrigins: https://www.gateway.eshoponabp.com,https://www.gateway-public.eshoponabp.com
connectionStrings:
paymentService: "Host=es-az-postgresdb;Port=5432;Database=EShopOnAbp_Payment;User ID=postgres;password=myPassw0rd;Pooling=false"
administrationService: "Host=es-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
paymentService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Payment;User ID=postgres;password=myPassw0rd;Pooling=false"
administrationService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
authServer:
authority: https://auth.eshoponabp.com
authority: http://eshop-az-authserver
requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: Production
redisHost: es-az-redis
rabbitmqHost: es-az-rabbitmq
elasticsearchHost: es-az-elasticsearch
redisHost: eshop-az-redis
rabbitmqHost: eshop-az-rabbitmq
elasticsearchHost: eshop-az-elasticsearch
ingress:
host: payment.eshoponabp.com
image:

Loading…
Cancel
Save