Browse Source

updated gateway and authserver values

pull/78/head
Galip Tolga Erdem 5 years ago
parent
commit
a8b0442946
  1. 10
      etc/k8s/eshoponabp/charts/administration/templates/administration-deployment.yaml
  2. 6
      etc/k8s/eshoponabp/charts/administration/values.yaml
  3. 8
      etc/k8s/eshoponabp/charts/authserver/templates/authserver-deployment.yaml
  4. 7
      etc/k8s/eshoponabp/charts/authserver/values.yaml
  5. 6
      etc/k8s/eshoponabp/charts/gateway-web-public/templates/gateway-web-public-configmap.yaml
  6. 6
      etc/k8s/eshoponabp/charts/gateway-web-public/templates/gateway-web-public-deployment.yaml
  7. 8
      etc/k8s/eshoponabp/charts/gateway-web-public/values.yaml
  8. 6
      etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-deployment.yaml
  9. 4
      etc/k8s/eshoponabp/charts/gateway-web/values.yaml
  10. 4
      etc/k8s/eshoponabp/charts/identity/templates/identity-deployment.yaml
  11. 2
      etc/k8s/eshoponabp/charts/identity/values.yaml
  12. 4
      etc/k8s/eshoponabp/charts/payment/templates/payment-deployment.yaml
  13. 21
      etc/k8s/eshoponabp/values.yaml

10
etc/k8s/eshoponabp/charts/administration/templates/administration-deployment.yaml

@ -23,8 +23,10 @@ spec:
env: env:
- name: App__SelfUrl - name: App__SelfUrl
value: "{{ .Values.config.selfUrl }}" value: "{{ .Values.config.selfUrl }}"
- name: RemoteServices__Default__BaseUrl - name: RemoteServices__AbpIdentity__BaseUrl
value: "{{ .Values.config.gatewayUrl }}" value: "{{ .Values.config.remoteServices.abpIdentityBaseUrl }}"
- name: RemoteServices__AbpIdentity__UseCurrentAccessToken
value: "{{ .Values.config.remoteServices.useCurrentToken }}"
- name: App__CorsOrigins - name: App__CorsOrigins
value: "{{ .Values.config.corsOrigins }}" value: "{{ .Values.config.corsOrigins }}"
- name: IdentityClients__Default__Authority - name: IdentityClients__Default__Authority
@ -39,6 +41,10 @@ spec:
value: "{{ .Values.config.authServer.authority }}" value: "{{ .Values.config.authServer.authority }}"
- name: "AuthServer__RequireHttpsMetadata" - name: "AuthServer__RequireHttpsMetadata"
value: "{{ .Values.config.authServer.requireHttpsMetadata }}" value: "{{ .Values.config.authServer.requireHttpsMetadata }}"
- name: "AuthServer__SwaggerClientId"
value: "{{ .Values.config.authServer.swaggerClientId }}"
- name: "AuthServer__SwaggerClientSecret"
value: "{{ .Values.config.authServer.swaggerClientSecret }}"
- name: "StringEncryption__DefaultPassPhrase" - name: "StringEncryption__DefaultPassPhrase"
value: "{{ .Values.config.stringEncryptionDefaultPassPhrase }}" value: "{{ .Values.config.stringEncryptionDefaultPassPhrase }}"
- name: "RabbitMQ__Connections__Default__HostName" - name: "RabbitMQ__Connections__Default__HostName"

6
etc/k8s/eshoponabp/charts/administration/values.yaml

@ -1,12 +1,16 @@
config: config:
selfUrl: # https://eshop-st-administration selfUrl: # https://eshop-st-administration
gatewayUrl: # https://eshop-st-gateway-internal/
corsOrigins: # https://eshop-st-gateway-web,https://eshop-st-gateway-public-web,https://eshop-st-gateway-internal corsOrigins: # https://eshop-st-gateway-web,https://eshop-st-gateway-public-web,https://eshop-st-gateway-internal
connectionStrings: connectionStrings:
administrationService: # administrationService: #
authServer: authServer:
authority: http://eshop-st-authserver authority: http://eshop-st-authserver
requireHttpsMetadata: "false" requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
remoteServices:
abpIdentityBaseUrl: #
useCurrentToken: "false"
dotnetEnv: Staging dotnetEnv: Staging
redisHost: es-st-redis redisHost: es-st-redis
rabbitmqHost: es-st-rabbitmq rabbitmqHost: es-st-rabbitmq

8
etc/k8s/eshoponabp/charts/authserver/templates/authserver-deployment.yaml

@ -31,6 +31,14 @@ spec:
value: "{{ .Values.config.connectionStrings.identityService }}" value: "{{ .Values.config.connectionStrings.identityService }}"
- name: "ConnectionStrings__AdministrationService" - name: "ConnectionStrings__AdministrationService"
value: "{{ .Values.config.connectionStrings.administrationService }}" value: "{{ .Values.config.connectionStrings.administrationService }}"
- name: "AuthServer__Authority"
value: "{{ .Values.config.authServer.authority }}"
- name: "AuthServer__RequireHttpsMetadata"
value: "{{ .Values.config.authServer.requireHttpsMetadata }}"
- name: "AuthServer__SwaggerClientId"
value: "{{ .Values.config.authServer.swaggerClientId }}"
- name: "AuthServer__SwaggerClientSecret"
value: "{{ .Values.config.authServer.swaggerClientSecret }}"
- name: "DOTNET_ENVIRONMENT" - name: "DOTNET_ENVIRONMENT"
value: "{{ .Values.config.dotnetEnv }}" value: "{{ .Values.config.dotnetEnv }}"
- name: "Redis__Configuration" - name: "Redis__Configuration"

7
etc/k8s/eshoponabp/charts/authserver/values.yaml

@ -4,7 +4,12 @@ config:
allowedRedirectUrls: https://eshop-st-web allowedRedirectUrls: https://eshop-st-web
connectionStrings: connectionStrings:
administrationService: # administrationService: #
identityService: # identityService: #
authServer:
authority: http://eshop-st-authserver
requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: # dotnetEnv: #
redisHost: # redisHost: #
rabbitmqHost: # rabbitmqHost: #

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

@ -61,11 +61,11 @@ data:
{ {
"ServiceKey": "Ordering Service", "ServiceKey": "Ordering Service",
"DownstreamPathTemplate": "/api/ordering/{everything}", "DownstreamPathTemplate": "/api/ordering/{everything}",
"DownstreamScheme": "{{ .Values.reRoutes.orderService.schema }}", "DownstreamScheme": "{{ .Values.reRoutes.orderingService.schema }}",
"DownstreamHostAndPorts": [ "DownstreamHostAndPorts": [
{ {
"Host": "{{ .Values.reRoutes.orderService.host }}", "Host": "{{ .Values.reRoutes.orderingService.host }}",
"Port": "{{ .Values.reRoutes.orderService.port }}", "Port": "{{ .Values.reRoutes.orderingService.port }}",
} }
], ],
"UpstreamPathTemplate": "/api/ordering/{everything}", "UpstreamPathTemplate": "/api/ordering/{everything}",

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

@ -38,7 +38,11 @@ spec:
- name: "AuthServer__Authority" - name: "AuthServer__Authority"
value: "{{ .Values.config.authServer.authority }}" value: "{{ .Values.config.authServer.authority }}"
- name: "AuthServer__RequireHttpsMetadata" - name: "AuthServer__RequireHttpsMetadata"
value: "{{ .Values.config.authServer.requireHttpsMetadata }}" value: "{{ .Values.config.authServer.requireHttpsMetadata }}"
- name: "AuthServer__SwaggerClientId"
value: "{{ .Values.config.authServer.swaggerClientId }}"
- name: "AuthServer__SwaggerClientSecret"
value: "{{ .Values.config.authServer.swaggerClientSecret }}"
- name: "ElasticSearch__Url" - name: "ElasticSearch__Url"
value: "{{ .Values.config.elasticsearchHost }}" value: "{{ .Values.config.elasticsearchHost }}"
- name: "StringEncryption__DefaultPassPhrase" - name: "StringEncryption__DefaultPassPhrase"

8
etc/k8s/eshoponabp/charts/gateway-web-public/values.yaml

@ -3,7 +3,9 @@ config:
globalConfigurationBaseUrl: http://eshop-st-gateway-public-web globalConfigurationBaseUrl: http://eshop-st-gateway-public-web
authServer: authServer:
authority: http://eshop-st-authserver authority: http://eshop-st-authserver
requireHttpsMetadata: "false" requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: Staging dotnetEnv: Staging
redisHost: es-st-redis redisHost: es-st-redis
rabbitmqHost: es-st-rabbitmq rabbitmqHost: es-st-rabbitmq
@ -27,9 +29,9 @@ reRoutes:
schema: http schema: http
host: eshop-st-basket host: eshop-st-basket
port: 80 port: 80
orderService: orderingService:
schema: http schema: http
host: eshop-st-order host: eshop-st-ordering
port: 80 port: 80
ingress: ingress:

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

@ -40,7 +40,11 @@ spec:
- name: "AuthServer__Authority" - name: "AuthServer__Authority"
value: "{{ .Values.config.authServer.authority }}" value: "{{ .Values.config.authServer.authority }}"
- name: "AuthServer__RequireHttpsMetadata" - name: "AuthServer__RequireHttpsMetadata"
value: "{{ .Values.config.authServer.requireHttpsMetadata }}" value: "{{ .Values.config.authServer.requireHttpsMetadata }}"
- name: "AuthServer__SwaggerClientId"
value: "{{ .Values.config.authServer.swaggerClientId }}"
- name: "AuthServer__SwaggerClientSecret"
value: "{{ .Values.config.authServer.swaggerClientSecret }}"
- name: "ElasticSearch__Url" - name: "ElasticSearch__Url"
value: "{{ .Values.config.elasticsearchHost }}" value: "{{ .Values.config.elasticsearchHost }}"
- name: "StringEncryption__DefaultPassPhrase" - name: "StringEncryption__DefaultPassPhrase"

4
etc/k8s/eshoponabp/charts/gateway-web/values.yaml

@ -4,7 +4,9 @@ config:
globalConfigurationBaseUrl: # http://eshop-st-gateway-web globalConfigurationBaseUrl: # http://eshop-st-gateway-web
authServer: authServer:
authority: http://eshop-st-authserver authority: http://eshop-st-authserver
requireHttpsMetadata: "false" requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: # dotnetEnv: #
redisHost: # redisHost: #
rabbitmqHost: # rabbitmqHost: #

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

@ -41,6 +41,10 @@ spec:
value: "{{ .Values.config.authServer.authority }}" value: "{{ .Values.config.authServer.authority }}"
- name: "AuthServer__RequireHttpsMetadata" - name: "AuthServer__RequireHttpsMetadata"
value: "{{ .Values.config.authServer.requireHttpsMetadata }}" value: "{{ .Values.config.authServer.requireHttpsMetadata }}"
- name: "AuthServer__SwaggerClientId"
value: "{{ .Values.config.authServer.swaggerClientId }}"
- name: "AuthServer__SwaggerClientSecret"
value: "{{ .Values.config.authServer.swaggerClientSecret }}"
- name: "StringEncryption__DefaultPassPhrase" - name: "StringEncryption__DefaultPassPhrase"
value: "{{ .Values.config.stringEncryptionDefaultPassPhrase }}" value: "{{ .Values.config.stringEncryptionDefaultPassPhrase }}"
- name: "IdentityServerClients__Web__RootUrl" - name: "IdentityServerClients__Web__RootUrl"

2
etc/k8s/eshoponabp/charts/identity/values.yaml

@ -7,6 +7,8 @@ config:
authServer: authServer:
authority: http://eshop-st-authserver authority: http://eshop-st-authserver
requireHttpsMetadata: "false" requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: Staging dotnetEnv: Staging
redisHost: es-st-redis redisHost: es-st-redis
rabbitmqHost: es-st-rabbitmq rabbitmqHost: es-st-rabbitmq

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

@ -25,8 +25,8 @@ spec:
value: "{{ .Values.config.selfUrl }}" value: "{{ .Values.config.selfUrl }}"
- name: App__CorsOrigins - name: App__CorsOrigins
value: "{{ .Values.config.corsOrigins }}" value: "{{ .Values.config.corsOrigins }}"
- name: "ConnectionStrings__OrderingService" - name: "ConnectionStrings__PaymentService"
value: {{ .Values.config.connectionStrings.orderingService }} value: {{ .Values.config.connectionStrings.paymentService }}
- name: "ConnectionStrings__AdministrationService" - name: "ConnectionStrings__AdministrationService"
value: {{ .Values.config.connectionStrings.administrationService }} value: {{ .Values.config.connectionStrings.administrationService }}
- name: "DOTNET_ENVIRONMENT" - name: "DOTNET_ENVIRONMENT"

21
etc/k8s/eshoponabp/values.yaml

@ -2,13 +2,12 @@
authserver: authserver:
config: config:
selfUrl: https://eshop-st-authserver selfUrl: https://eshop-st-authserver
corsOrigins: https://eshop-st-gateway-web,https://eshop-st-gateway-web-public,https://eshop-st-gateway-internal corsOrigins: https://eshop-st-gateway-web,https://eshop-st-gateway-web-public,https://eshop-st-identity,https://eshop-st-administration,https://eshop-st-basket,https://eshop-st-catalog,https://eshop-st-ordering,https://eshop-st-payment
allowedRedirectUrls: https://eshop-st-web allowedRedirectUrls: https://eshop-st-web
connectionStrings: connectionStrings:
administrationService: "Host=es-st-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false" administrationService: "Host=es-st-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
identityService: "Host=es-st-postgresdb;Port=5432;Database=EShopOnAbp_Identity;User ID=postgres;password=myPassw0rd;Pooling=false" identityService: "Host=es-st-postgresdb;Port=5432;Database=EShopOnAbp_Identity;User ID=postgres;password=myPassw0rd;Pooling=false"
dotnetEnv: Staging dotnetEnv: Staging
globalizationInvariant: 0 #https://docs.microsoft.com/en-us/dotnet/core/runtime-config/globalization
redisHost: es-st-redis redisHost: es-st-redis
rabbitmqHost: es-st-rabbitmq rabbitmqHost: es-st-rabbitmq
elasticsearchHost: es-st-elasticsearch elasticsearchHost: es-st-elasticsearch
@ -58,6 +57,8 @@ identity:
authServer: authServer:
authority: http://eshop-st-authserver authority: http://eshop-st-authserver
requireHttpsMetadata: "false" requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: Staging dotnetEnv: Staging
redisHost: es-st-redis redisHost: es-st-redis
rabbitmqHost: es-st-rabbitmq rabbitmqHost: es-st-rabbitmq
@ -84,13 +85,17 @@ identity:
administration: administration:
config: config:
selfUrl: https://eshop-st-administration selfUrl: https://eshop-st-administration
gatewayUrl: https://eshop-st-gateway-internal/
corsOrigins: https://eshop-st-gateway-web,https://eshop-st-gateway-web-public,https://eshop-st-gateway-internal corsOrigins: https://eshop-st-gateway-web,https://eshop-st-gateway-web-public,https://eshop-st-gateway-internal
connectionStrings: connectionStrings:
administrationService: "Host=es-st-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false" administrationService: "Host=es-st-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
authServer: authServer:
authority: http://eshop-st-authserver authority: http://eshop-st-authserver
requireHttpsMetadata: "false" requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
remoteServices:
abpIdentityBaseUrl: https://eshop-st-identity
useCurrentToken: "false"
dotnetEnv: Staging dotnetEnv: Staging
redisHost: es-st-redis redisHost: es-st-redis
rabbitmqHost: es-st-rabbitmq rabbitmqHost: es-st-rabbitmq
@ -112,6 +117,8 @@ gateway-web:
authServer: authServer:
authority: http://eshop-st-authserver authority: http://eshop-st-authserver
requireHttpsMetadata: "false" requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: Staging dotnetEnv: Staging
redisHost: es-st-redis redisHost: es-st-redis
rabbitmqHost: es-st-rabbitmq rabbitmqHost: es-st-rabbitmq
@ -138,8 +145,10 @@ gateway-web-public:
selfUrl: https://eshop-st-gateway-web-public selfUrl: https://eshop-st-gateway-web-public
globalConfigurationBaseUrl: http://eshop-st-gateway-public-web globalConfigurationBaseUrl: http://eshop-st-gateway-public-web
authServer: authServer:
authority: http://eshop-st-AUTHSERVER authority: http://eshop-st-authserver
requireHttpsMetadata: "false" requireHttpsMetadata: "false"
swaggerClientId: WebGateway_Swagger
swaggerClientSecret: "1q2w3e*"
dotnetEnv: Staging dotnetEnv: Staging
redisHost: es-st-redis redisHost: es-st-redis
rabbitmqHost: es-st-rabbitmq rabbitmqHost: es-st-rabbitmq
@ -167,9 +176,9 @@ gateway-web-public:
schema: http schema: http
host: eshop-st-basket host: eshop-st-basket
port: 80 port: 80
orderService: orderingService:
schema: http schema: http
host: eshop-st-order host: eshop-st-ordering
port: 80 port: 80
# basket-service sub-chart override # basket-service sub-chart override

Loading…
Cancel
Save