k8s config updated
This commit is contained in:
parent
a34ed28445
commit
5bb67596b9
@ -109,37 +109,37 @@ services:
|
|||||||
image: rabbitmq:3-management-alpine
|
image: rabbitmq:3-management-alpine
|
||||||
|
|
||||||
mobileshoppingapigw:
|
mobileshoppingapigw:
|
||||||
image: eshop/ocelotapigw-ms
|
image: eshop/ocelotapigw-ms:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
|
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
|
||||||
|
|
||||||
mobilemarketingapigw:
|
mobilemarketingapigw:
|
||||||
image: eshop/ocelotapigw-mm
|
image: eshop/ocelotapigw-mm:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile2
|
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile2
|
||||||
|
|
||||||
webshoppingapigw:
|
webshoppingapigw:
|
||||||
image: eshop/ocelotapigw-ws
|
image: eshop/ocelotapigw-ws:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile3
|
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile3
|
||||||
|
|
||||||
webmarketingapigw:
|
webmarketingapigw:
|
||||||
image: eshop/ocelotapigw-wm
|
image: eshop/ocelotapigw-wm:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
|
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
|
||||||
|
|
||||||
mobileshoppingagg:
|
mobileshoppingagg:
|
||||||
image: eshop/mobileshoppingagg
|
image: eshop/mobileshoppingagg:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile
|
dockerfile: src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile
|
||||||
|
|
||||||
webshoppingagg:
|
webshoppingagg:
|
||||||
image: eshop/webshoppingagg
|
image: eshop/webshoppingagg:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile
|
dockerfile: src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile
|
||||||
|
@ -6,11 +6,9 @@ metadata:
|
|||||||
app: eshop
|
app: eshop
|
||||||
data:
|
data:
|
||||||
# Basket.API entries
|
# Basket.API entries
|
||||||
BasketBus: CONNECTION_STRING (NAME OF RABBITMQ CONTAINER OR Endpoint=sb://XXXX in case of using Azure)
|
basket__ConnectionString: REDIS CONNECTION STRING FOR BASKET
|
||||||
BasketRedisConStr: REDIS CONNECTION STRING FOR BASKET
|
|
||||||
# Catalog.API entries
|
# Catalog.API entries
|
||||||
CatalogBus: CONNECTION_STRING (NAME OF RABBITMQ CONTAINER OR Endpoint=sb://XXXX in case of using Azure)
|
catalog__ConnectionString: Catalog SQL SERVER CONNECTION STRING (Server=xxxx;Intial Catalog=yyy;....)
|
||||||
CatalogSqlDb: Catalog SQL SERVER CONNECTION STRING (Server=xxxx;Intial Catalog=yyy;....)
|
|
||||||
# Identity.API entries
|
# Identity.API entries
|
||||||
IdentitySqlDb: Identity SQL SERVER CONNECTION STRING (Server=xxxx;Intial Catalog=yyy;....)
|
IdentitySqlDb: Identity SQL SERVER CONNECTION STRING (Server=xxxx;Intial Catalog=yyy;....)
|
||||||
# Locations.API entries
|
# Locations.API entries
|
||||||
@ -30,5 +28,7 @@ data:
|
|||||||
# Payment.API entries
|
# Payment.API entries
|
||||||
PaymentBus: CONNECTION_STRING (NAME OF RABBITMQ CONTAINER OR Endpoint=sb://XXXX in case of using Azure)
|
PaymentBus: CONNECTION_STRING (NAME OF RABBITMQ CONTAINER OR Endpoint=sb://XXXX in case of using Azure)
|
||||||
# Global entries
|
# Global entries
|
||||||
UseAzureServiceBus: "TRUE" IF USE AZURE SB ("FALSE" FOR USING RABBITMQ)
|
all_UseAzureServiceBus: "TRUE" IF USE AZURE SB ("FALSE" FOR USING RABBITMQ)
|
||||||
keystore: REDIS CONNECTION STRING FOR KEYSTORE
|
keystore: REDIS CONNECTION STRING FOR KEYSTORE
|
||||||
|
all_EventBusConnection: CONNECTION_STRING (NAME OF RABBITMQ CONTAINER OR Endpoint=sb://XXXX in case of using Azure)
|
||||||
|
all_InstrumentationKey: APPINSIGHTS KEY
|
@ -5,28 +5,23 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: eshop
|
app: eshop
|
||||||
data:
|
data:
|
||||||
BasketBus: rabbitmq
|
basket__ConnectionString: basket-data
|
||||||
BasketRedisConStr: basket-data
|
catalog__ConnectionString: Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word;
|
||||||
CatalogBus: rabbitmq
|
catalog__AzureStorageEnabled: "False"
|
||||||
CatalogSqlDb: Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word;
|
identity__ConnectionString: Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.IdentityDb;User Id=sa;Password=Pass@word;
|
||||||
CatalogAzureStorageEnabled: "False"
|
locations__ConnectionString: mongodb://nosql-data
|
||||||
IdentitySqlDb: Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.IdentityDb;User Id=sa;Password=Pass@word;
|
locations__Database: LocationsDb
|
||||||
LocationsBus: rabbitmq
|
marketing__MongoConnectionString: mongodb://nosql-data
|
||||||
LocationsNoSqlDb: mongodb://nosql-data
|
marketing__MongoDatabase: MarketingDb
|
||||||
LocationsNoSqlDbName: LocationsDb
|
marketing__ConnectionString: Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word;
|
||||||
MarketingBus: rabbitmq
|
ordering__ConnectionString: Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;
|
||||||
MarketingNoSqlDb: mongodb://nosql-data
|
|
||||||
MarketingNoSqlDbName: MarketingDb
|
|
||||||
MarketingSqlDb: Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word;
|
|
||||||
OrderingBus: rabbitmq
|
|
||||||
OrderingSqlDb: Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;
|
|
||||||
PaymentBus: rabbitmq
|
|
||||||
UseAzureServiceBus: "False"
|
|
||||||
EnableLoadTest: "False"
|
|
||||||
keystore: keystore-data
|
keystore: keystore-data
|
||||||
GracePeriodManager_GracePeriodTime: "1"
|
GracePeriodManager__GracePeriodTime: "1"
|
||||||
GracePeriodManager_CheckUpdateTime: "15000"
|
GracePeriodManager__CheckUpdateTime: "15000"
|
||||||
Instrumentation_Key: ""
|
all__EventBusConnection: rabbitmq
|
||||||
|
all__InstrumentationKey: ""
|
||||||
|
all__EnableLoadTest: "False"
|
||||||
|
all__UseAzureServiceBus: "False"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ if ($buildImages) {
|
|||||||
docker-compose -p .. -f ../docker-compose.yml build
|
docker-compose -p .. -f ../docker-compose.yml build
|
||||||
|
|
||||||
Write-Host "Pushing images to $registry/$dockerOrg..." -ForegroundColor Yellow
|
Write-Host "Pushing images to $registry/$dockerOrg..." -ForegroundColor Yellow
|
||||||
$services = ("basket.api", "catalog.api", "identity.api", "ordering.api", "marketing.api","payment.api","locations.api", "webmvc", "webspa", "webstatus", "ocelotapigw")
|
$services = ("basket.api", "catalog.api", "identity.api", "ordering.api", "marketing.api","payment.api","locations.api", "webmvc", "webspa", "webstatus", "ocelotapigw-mm", "ocelotapigw-ms", "ocelotapigw-wm", "ocelotapigw-ws", "mobileshoppingagg", "webshoppingagg")
|
||||||
|
|
||||||
foreach ($service in $services) {
|
foreach ($service in $services) {
|
||||||
$imageFqdn = if ($useDockerHub) {"$dockerOrg/${service}"} else {"$registry/$dockerOrg/${service}"}
|
$imageFqdn = if ($useDockerHub) {"$dockerOrg/${service}"} else {"$registry/$dockerOrg/${service}"}
|
||||||
@ -103,6 +103,7 @@ if (-not [string]::IsNullOrEmpty($dockerUser)) {
|
|||||||
Write-Host "Removing existing services & deployments.." -ForegroundColor Yellow
|
Write-Host "Removing existing services & deployments.." -ForegroundColor Yellow
|
||||||
ExecKube -cmd 'delete deployments --all'
|
ExecKube -cmd 'delete deployments --all'
|
||||||
ExecKube -cmd 'delete services --all'
|
ExecKube -cmd 'delete services --all'
|
||||||
|
ExecKube -cmd 'delete configmap internalurls'
|
||||||
ExecKube -cmd 'delete configmap urls'
|
ExecKube -cmd 'delete configmap urls'
|
||||||
ExecKube -cmd 'delete configmap externalcfg'
|
ExecKube -cmd 'delete configmap externalcfg'
|
||||||
ExecKube -cmd 'delete configmap ocelot'
|
ExecKube -cmd 'delete configmap ocelot'
|
||||||
@ -116,47 +117,28 @@ if ($deployInfrastructure) {
|
|||||||
|
|
||||||
Write-Host 'Deploying ocelot APIGW' -ForegroundColor Yellow
|
Write-Host 'Deploying ocelot APIGW' -ForegroundColor Yellow
|
||||||
|
|
||||||
ExecKube "create configmap ocelot --from-file=ocelot/configuration.json"
|
ExecKube "create configmap ocelot --from-file=mm=ocelot/configuration-mobile-marketing.json --from-file=ms=ocelot/configuration-mobile-shopping.json --from-file=wm=ocelot/configuration-web-marketing.json --from-file=ws=ocelot/configuration-web-shopping.json "
|
||||||
ExecKube -cmd "apply -f ocelot/deployment.yaml"
|
ExecKube -cmd "apply -f ocelot/deployment.yaml"
|
||||||
ExecKube -cmd "apply -f ocelot/service.yaml"
|
ExecKube -cmd "apply -f ocelot/service.yaml"
|
||||||
|
|
||||||
Write-Host 'Deploying code deployments (Web APIs, Web apps, ...)' -ForegroundColor Yellow
|
Write-Host 'Deploying code deployments (Web APIs, Web apps, ...)' -ForegroundColor Yellow
|
||||||
ExecKube -cmd 'create -f services.yaml'
|
ExecKube -cmd 'create -f services.yaml'
|
||||||
|
|
||||||
|
ExecKube -cmd 'create -f internalurls.yaml'
|
||||||
ExecKube -cmd 'create configmap urls `
|
ExecKube -cmd 'create configmap urls `
|
||||||
--from-literal=BasketUrl=http://basket `
|
--from-literal=PicBaseUrl=http://$($externalDns)/webshoppingapigw/api/v1/c/catalog/items/[0]/pic/ `
|
||||||
--from-literal=BasketHealthCheckUrl=http://basket/hc `
|
--from-literal=Marketing_PicBaseUrl=http://$($externalDns)/webmarketingapigw/api/v1/m/campaigns/[0]/pic/ `
|
||||||
--from-literal=CatalogUrl=http://$($externalDns)/catalog-api `
|
--from-literal=mvc_e=http://$($externalDns)/webmvc `
|
||||||
--from-literal=CatalogHealthCheckUrl=http://catalog/hc `
|
--from-literal=marketingapigw_e=http://$($externalDns)/webmarketingapigw `
|
||||||
--from-literal=PicBaseUrl=http://$($externalDns)/catalog-api/api/v1/catalog/items/[0]/pic/ `
|
--from-literal=webshoppingapigw_e=http://$($externalDns)/webshoppingapigw `
|
||||||
--from-literal=Marketing_PicBaseUrl=http://$($externalDns)/marketing-api/api/v1/campaigns/[0]/pic/ `
|
--from-literal=mobileshoppingagg_e=http://$($externalDns)/mobileshoppingagg `
|
||||||
--from-literal=IdentityUrl=http://$($externalDns)/identity `
|
--from-literal=webshoppingagg_e=http://$($externalDns)/webshoppingagg `
|
||||||
--from-literal=IdentityHealthCheckUrl=http://identity/hc `
|
--from-literal=identity_e=http://$($externalDns)/identity `
|
||||||
--from-literal=OrderingUrl=http://ordering `
|
--from-literal=spa_e=http://$($externalDns) `
|
||||||
--from-literal=OrderingHealthCheckUrl=http://ordering/hc `
|
--from-literal=locations_e=http://$($externalDns)/locations-api `
|
||||||
--from-literal=MvcClientExternalUrl=http://$($externalDns)/webmvc `
|
--from-literal=marketing_e=http://$($externalDns)/marketing-api `
|
||||||
--from-literal=WebMvcHealthCheckUrl=http://webmvc/hc `
|
--from-literal=basket_e=http://$($externalDns)/basket-api `
|
||||||
--from-literal=MvcClientOrderingUrl=http://ordering `
|
--from-literal=ordering_e=http://$($externalDns)/ordering-api '
|
||||||
--from-literal=MvcClientCatalogUrl=http://catalog `
|
|
||||||
--from-literal=MvcClientBasketUrl=http://basket `
|
|
||||||
--from-literal=MvcClientMarketingUrl=http://marketing `
|
|
||||||
--from-literal=MvcClientLocationsUrl=http://locations `
|
|
||||||
--from-literal=MarketingHealthCheckUrl=http://marketing/hc `
|
|
||||||
--from-literal=WebSpaHealthCheckUrl=http://webspa/hc `
|
|
||||||
--from-literal=SpaClientMarketingExternalUrl=http://$($externalDns)/marketing-api `
|
|
||||||
--from-literal=SpaClientOrderingExternalUrl=http://$($externalDns)/ordering-api `
|
|
||||||
--from-literal=SpaClientCatalogExternalUrl=http://$($externalDns)/catalog-api `
|
|
||||||
--from-literal=SpaClientBasketExternalUrl=http://$($externalDns)/basket-api `
|
|
||||||
--from-literal=SpaClientIdentityExternalUrl=http://$($externalDns)/identity `
|
|
||||||
--from-literal=SpaClientLocationsUrl=http://$($externalDns)/locations-api `
|
|
||||||
--from-literal=LocationsHealthCheckUrl=http://locations/hc `
|
|
||||||
--from-literal=SpaClientExternalUrl=http://$($externalDns) `
|
|
||||||
--from-literal=LocationApiClient=http://$($externalDns)/locations-api `
|
|
||||||
--from-literal=MarketingApiClient=http://$($externalDns)/marketing-api `
|
|
||||||
--from-literal=BasketApiClient=http://$($externalDns)/basket-api `
|
|
||||||
--from-literal=OrderingApiClient=http://$($externalDns)/ordering-api `
|
|
||||||
--from-literal=PaymentHealthCheckUrl=http://payment/hc'
|
|
||||||
|
|
||||||
|
|
||||||
ExecKube -cmd 'label configmap urls app=eshop'
|
ExecKube -cmd 'label configmap urls app=eshop'
|
||||||
|
|
||||||
@ -184,7 +166,14 @@ ExecKube -cmd 'set image deployments/payment payment=${registryPath}${dockerOrg}
|
|||||||
ExecKube -cmd 'set image deployments/webmvc webmvc=${registryPath}${dockerOrg}/webmvc:$imageTag'
|
ExecKube -cmd 'set image deployments/webmvc webmvc=${registryPath}${dockerOrg}/webmvc:$imageTag'
|
||||||
ExecKube -cmd 'set image deployments/webstatus webstatus=${registryPath}${dockerOrg}/webstatus:$imageTag'
|
ExecKube -cmd 'set image deployments/webstatus webstatus=${registryPath}${dockerOrg}/webstatus:$imageTag'
|
||||||
ExecKube -cmd 'set image deployments/webspa webspa=${registryPath}${dockerOrg}/webspa:$imageTag'
|
ExecKube -cmd 'set image deployments/webspa webspa=${registryPath}${dockerOrg}/webspa:$imageTag'
|
||||||
ExecKube -cmd 'set image deployments/ocelot ocelot=${registryPath}${dockerOrg}/ocelotapigw:$imageTag'
|
|
||||||
|
ExecKube -cmd 'set image deployments/mobileshoppingagg mobileshoppingagg=${registryPath}${dockerOrg}/mobileshoppingagg:$imageTag'
|
||||||
|
ExecKube -cmd 'set image deployments/webshoppingagg webshoppingagg=${registryPath}${dockerOrg}/webshoppingagg:$imageTag'
|
||||||
|
|
||||||
|
ExecKube -cmd 'set image deployments/apigwmm apigwmm=${registryPath}${dockerOrg}/ocelotapigw-mm:$imageTag'
|
||||||
|
ExecKube -cmd 'set image deployments/apigwms apigwms=${registryPath}${dockerOrg}/ocelotapigw-ms:$imageTag'
|
||||||
|
ExecKube -cmd 'set image deployments/apigwwm apigwwm=${registryPath}${dockerOrg}/ocelotapigw-wm:$imageTag'
|
||||||
|
ExecKube -cmd 'set image deployments/apigwws apigwws=${registryPath}${dockerOrg}/ocelotapigw-ws:$imageTag'
|
||||||
|
|
||||||
Write-Host "Execute rollout..." -ForegroundColor Yellow
|
Write-Host "Execute rollout..." -ForegroundColor Yellow
|
||||||
ExecKube -cmd 'rollout resume deployments/basket'
|
ExecKube -cmd 'rollout resume deployments/basket'
|
||||||
@ -197,7 +186,12 @@ ExecKube -cmd 'rollout resume deployments/payment'
|
|||||||
ExecKube -cmd 'rollout resume deployments/webmvc'
|
ExecKube -cmd 'rollout resume deployments/webmvc'
|
||||||
ExecKube -cmd 'rollout resume deployments/webstatus'
|
ExecKube -cmd 'rollout resume deployments/webstatus'
|
||||||
ExecKube -cmd 'rollout resume deployments/webspa'
|
ExecKube -cmd 'rollout resume deployments/webspa'
|
||||||
ExecKube -cmd 'rollout resume deployments/ocelot'
|
ExecKube -cmd 'rollout resume deployments/mobileshoppingagg'
|
||||||
|
ExecKube -cmd 'rollout resume deployments/webshoppingagg'
|
||||||
|
ExecKube -cmd 'rollout resume deployments/apigwmm'
|
||||||
|
ExecKube -cmd 'rollout resume deployments/apigwms'
|
||||||
|
ExecKube -cmd 'rollout resume deployments/apigwwm'
|
||||||
|
ExecKube -cmd 'rollout resume deployments/apigwws'
|
||||||
|
|
||||||
Write-Host "WebSPA is exposed at http://$externalDns, WebMVC at http://$externalDns/webmvc, WebStatus at http://$externalDns/webstatus" -ForegroundColor Yellow
|
Write-Host "WebSPA is exposed at http://$externalDns, WebMVC at http://$externalDns/webmvc, WebStatus at http://$externalDns/webstatus" -ForegroundColor Yellow
|
||||||
|
|
||||||
|
@ -21,32 +21,32 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: BasketRedisConStr
|
key: basket__ConnectionString
|
||||||
- name: EventBusConnection
|
- name: EventBusConnection
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: BasketBus
|
key: all__EventBusConnection
|
||||||
- name: AzureServiceBusEnabled
|
- name: AzureServiceBusEnabled
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: UseAzureServiceBus
|
key: all__UseAzureServiceBus
|
||||||
- name: ApplicationInsights__InstrumentationKey
|
- name: ApplicationInsights__InstrumentationKey
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: Instrumentation_Key
|
key: all__InstrumentationKey
|
||||||
- name: IdentityUrl
|
- name: IdentityUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: IdentityUrl
|
key: identity_e
|
||||||
- name: UseLoadTest
|
- name: UseLoadTest
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: EnableLoadTest
|
key: all__EnableLoadTest
|
||||||
- name: OrchestratorType
|
- name: OrchestratorType
|
||||||
value: 'K8S'
|
value: 'K8S'
|
||||||
ports:
|
ports:
|
||||||
@ -56,15 +56,8 @@ spec:
|
|||||||
path: /hc
|
path: /hc
|
||||||
port: 80
|
port: 80
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 300
|
||||||
periodSeconds: 10
|
periodSeconds: 240
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /hc
|
|
||||||
port: 80
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 60
|
|
||||||
periodSeconds: 10
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: registry-key
|
- name: registry-key
|
||||||
---
|
---
|
||||||
@ -91,7 +84,7 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: CatalogSqlDb
|
key: catalog__ConnectionString
|
||||||
- name: PicBaseUrl
|
- name: PicBaseUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
@ -101,17 +94,17 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: CatalogAzureStorageEnabled
|
key: catalog__AzureStorageEnabled
|
||||||
- name: EventBusConnection
|
- name: EventBusConnection
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: CatalogBus
|
key: all__EventBusConnection
|
||||||
- name: ApplicationInsights__InstrumentationKey
|
- name: ApplicationInsights__InstrumentationKey
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: Instrumentation_Key
|
key: all__InstrumentationKey
|
||||||
- name: OrchestratorType
|
- name: OrchestratorType
|
||||||
value: 'K8S'
|
value: 'K8S'
|
||||||
ports:
|
ports:
|
||||||
@ -121,15 +114,8 @@ spec:
|
|||||||
path: /hc
|
path: /hc
|
||||||
port: 80
|
port: 80
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 300
|
||||||
periodSeconds: 10
|
periodSeconds: 240
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /hc
|
|
||||||
port: 80
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 60
|
|
||||||
periodSeconds: 10
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: registry-key
|
- name: registry-key
|
||||||
---
|
---
|
||||||
@ -156,7 +142,7 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: IdentitySqlDb
|
key: identity__ConnectionString
|
||||||
- name: DPConnectionString
|
- name: DPConnectionString
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
@ -168,37 +154,47 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: MvcClientExternalUrl
|
key: mvc_e
|
||||||
- name: SpaClient
|
- name: SpaClient
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: SpaClientExternalUrl
|
key: spa_e
|
||||||
- name: LocationApiClient
|
- name: LocationApiClient
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: LocationApiClient
|
key: locations_e
|
||||||
- name: MarketingApiClient
|
- name: MarketingApiClient
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: MarketingApiClient
|
key: marketing_e
|
||||||
- name: BasketApiClient
|
- name: BasketApiClient
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: BasketApiClient
|
key: basket_e
|
||||||
- name: OrderingApiClient
|
- name: OrderingApiClient
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: OrderingApiClient
|
key: ordering_e
|
||||||
|
- name: MobileShoppingAggClient
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: urls
|
||||||
|
key: mobileshoppingagg_e
|
||||||
|
- name: WebShoppingAggClient
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: urls
|
||||||
|
key: webshoppingagg_e
|
||||||
- name: ApplicationInsights__InstrumentationKey
|
- name: ApplicationInsights__InstrumentationKey
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: Instrumentation_Key
|
key: all__InstrumentationKey
|
||||||
- name: OrchestratorType
|
- name: OrchestratorType
|
||||||
value: 'K8S'
|
value: 'K8S'
|
||||||
ports:
|
ports:
|
||||||
@ -208,15 +204,8 @@ spec:
|
|||||||
path: /hc
|
path: /hc
|
||||||
port: 80
|
port: 80
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 300
|
||||||
periodSeconds: 10
|
periodSeconds: 240
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /hc
|
|
||||||
port: 80
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 60
|
|
||||||
periodSeconds: 10
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: registry-key
|
- name: registry-key
|
||||||
---
|
---
|
||||||
@ -243,42 +232,42 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: OrderingSqlDb
|
key: ordering__ConnectionString
|
||||||
- name: EventBusConnection
|
- name: EventBusConnection
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: OrderingBus
|
key: all__EventBusConnection
|
||||||
- name: AzureServiceBusEnabled
|
- name: AzureServiceBusEnabled
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: UseAzureServiceBus
|
key: all__UseAzureServiceBus
|
||||||
- name: IdentityUrl
|
- name: IdentityUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: IdentityUrl
|
key: identity_e
|
||||||
- name: CheckUpdateTime
|
- name: CheckUpdateTime
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: GracePeriodManager_CheckUpdateTime
|
key: GracePeriodManager__CheckUpdateTime
|
||||||
- name: GracePeriodTime
|
- name: GracePeriodTime
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: GracePeriodManager_GracePeriodTime
|
key: GracePeriodManager__GracePeriodTime
|
||||||
- name: ApplicationInsights__InstrumentationKey
|
- name: ApplicationInsights__InstrumentationKey
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: Instrumentation_Key
|
key: all__InstrumentationKey
|
||||||
- name: UseLoadTest
|
- name: UseLoadTest
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: EnableLoadTest
|
key: all__EnableLoadTest
|
||||||
- name: OrchestratorType
|
- name: OrchestratorType
|
||||||
value: 'K8S'
|
value: 'K8S'
|
||||||
ports:
|
ports:
|
||||||
@ -288,15 +277,8 @@ spec:
|
|||||||
path: /hc
|
path: /hc
|
||||||
port: 80
|
port: 80
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 300
|
||||||
periodSeconds: 10
|
periodSeconds: 240
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /hc
|
|
||||||
port: 80
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 60
|
|
||||||
periodSeconds: 10
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: registry-key
|
- name: registry-key
|
||||||
---
|
---
|
||||||
@ -323,42 +305,42 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: LocationsNoSqlDb
|
key: locations__ConnectionString
|
||||||
- name: Database
|
- name: Database
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: LocationsNoSqlDbName
|
key: locations__Database
|
||||||
- name: AzureServiceBusEnabled
|
- name: AzureServiceBusEnabled
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: UseAzureServiceBus
|
key: all__UseAzureServiceBus
|
||||||
- name: EventBusConnection
|
- name: EventBusConnection
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: LocationsBus
|
key: all__EventBusConnection
|
||||||
- name: IdentityUrl
|
- name: IdentityUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: IdentityUrl
|
key: identity
|
||||||
- name: IdentityUrlExternal
|
- name: IdentityUrlExternal
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: IdentityUrl
|
key: identity_e
|
||||||
- name: ApplicationInsights__InstrumentationKey
|
- name: ApplicationInsights__InstrumentationKey
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: Instrumentation_Key
|
key: all__InstrumentationKey
|
||||||
- name: UseLoadTest
|
- name: UseLoadTest
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: EnableLoadTest
|
key: all__EnableLoadTest
|
||||||
- name: OrchestratorType
|
- name: OrchestratorType
|
||||||
value: 'K8S'
|
value: 'K8S'
|
||||||
ports:
|
ports:
|
||||||
@ -368,15 +350,8 @@ spec:
|
|||||||
path: /hc
|
path: /hc
|
||||||
port: 80
|
port: 80
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 300
|
||||||
periodSeconds: 10
|
periodSeconds: 240
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /hc
|
|
||||||
port: 80
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 60
|
|
||||||
periodSeconds: 10
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: registry-key
|
- name: registry-key
|
||||||
---
|
---
|
||||||
@ -403,37 +378,37 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: MarketingSqlDb
|
key: marketing__ConnectionString
|
||||||
- name: MongoConnectionString
|
- name: MongoConnectionString
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: MarketingNoSqlDb
|
key: marketing__MongoConnectionString
|
||||||
- name: MongoDatabase
|
- name: MongoDatabase
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: MarketingNoSqlDbName
|
key: marketing__MongoDatabase
|
||||||
- name: AzureServiceBusEnabled
|
- name: AzureServiceBusEnabled
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: UseAzureServiceBus
|
key: all__UseAzureServiceBus
|
||||||
- name: EventBusConnection
|
- name: EventBusConnection
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: MarketingBus
|
key: all__EventBusConnection
|
||||||
- name: IdentityUrl
|
- name: IdentityUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: IdentityUrl
|
key: identity
|
||||||
- name: IdentityUrlExternal
|
- name: IdentityUrlExternal
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: IdentityUrl
|
key: identity_e
|
||||||
- name: PicBaseUrl
|
- name: PicBaseUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
@ -443,12 +418,12 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: Instrumentation_Key
|
key: all__InstrumentationKey
|
||||||
- name: UseLoadTest
|
- name: UseLoadTest
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: EnableLoadTest
|
key: all__EnableLoadTest
|
||||||
- name: OrchestratorType
|
- name: OrchestratorType
|
||||||
value: 'K8S'
|
value: 'K8S'
|
||||||
ports:
|
ports:
|
||||||
@ -458,15 +433,8 @@ spec:
|
|||||||
path: /hc
|
path: /hc
|
||||||
port: 80
|
port: 80
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 300
|
||||||
periodSeconds: 10
|
periodSeconds: 240
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /hc
|
|
||||||
port: 80
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 60
|
|
||||||
periodSeconds: 10
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: registry-key
|
- name: registry-key
|
||||||
---
|
---
|
||||||
@ -493,17 +461,17 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: UseAzureServiceBus
|
key: all__UseAzureServiceBus
|
||||||
- name: EventBusConnection
|
- name: EventBusConnection
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: PaymentBus
|
key: all__EventBusConnection
|
||||||
- name: ApplicationInsights__InstrumentationKey
|
- name: ApplicationInsights__InstrumentationKey
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: Instrumentation_Key
|
key: all__InstrumentationKey
|
||||||
- name: OrchestratorType
|
- name: OrchestratorType
|
||||||
value: 'K8S'
|
value: 'K8S'
|
||||||
ports:
|
ports:
|
||||||
@ -513,15 +481,8 @@ spec:
|
|||||||
path: /hc
|
path: /hc
|
||||||
port: 80
|
port: 80
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 300
|
||||||
periodSeconds: 10
|
periodSeconds: 240
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /hc
|
|
||||||
port: 80
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 60
|
|
||||||
periodSeconds: 10
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: registry-key
|
- name: registry-key
|
||||||
---
|
---
|
||||||
@ -551,81 +512,66 @@ spec:
|
|||||||
key: keystore
|
key: keystore
|
||||||
- name: IsClusterEnv
|
- name: IsClusterEnv
|
||||||
value: 'True'
|
value: 'True'
|
||||||
- name: BasketUrl
|
- name: PurchaseUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: MvcClientBasketUrl
|
key: apigwws
|
||||||
- name: CallBackUrl
|
- name: CallBackUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: MvcClientExternalUrl
|
key: mvc_e
|
||||||
- name: LocationsUrl
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: urls
|
|
||||||
key: MvcClientLocationsUrl
|
|
||||||
- name: CatalogUrl
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: urls
|
|
||||||
key: MvcClientCatalogUrl
|
|
||||||
- name: IdentityUrl
|
- name: IdentityUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: IdentityUrl
|
key: identity_e
|
||||||
- name: OrderingUrl
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: urls
|
|
||||||
key: MvcClientOrderingUrl
|
|
||||||
- name: MarketingUrl
|
- name: MarketingUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: MvcClientMarketingUrl
|
key: apigwwm
|
||||||
- name: BasketUrlHC
|
- name: BasketUrlHC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: BasketHealthCheckUrl
|
key: basket__hc
|
||||||
- name: CatalogUrlHC
|
- name: CatalogUrlHC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: CatalogHealthCheckUrl
|
key: catalog__hc
|
||||||
- name: IdentityUrlHC
|
- name: IdentityUrlHC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: IdentityHealthCheckUrl
|
key: identity__hc
|
||||||
- name: OrderingUrlHC
|
- name: OrderingUrlHC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: OrderingHealthCheckUrl
|
key: ordering__hc
|
||||||
- name: MarketingUrlHC
|
- name: MarketingUrlHC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: MarketingHealthCheckUrl
|
key: marketing__hc
|
||||||
- name: PaymentUrlHC
|
- name: PaymentUrlHC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: PaymentHealthCheckUrl
|
key: payment__hc
|
||||||
- name: ApplicationInsights__InstrumentationKey
|
- name: ApplicationInsights__InstrumentationKey
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: Instrumentation_Key
|
key: all__InstrumentationKey
|
||||||
- name: UseLoadTest
|
- name: UseLoadTest
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: EnableLoadTest
|
key: all__EnableLoadTest
|
||||||
- name: OrchestratorType
|
- name: OrchestratorType
|
||||||
value: 'K8S'
|
value: 'K8S'
|
||||||
ports:
|
ports:
|
||||||
@ -635,15 +581,8 @@ spec:
|
|||||||
path: /hc
|
path: /hc
|
||||||
port: 80
|
port: 80
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 300
|
||||||
periodSeconds: 10
|
periodSeconds: 240
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /hc
|
|
||||||
port: 80
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 60
|
|
||||||
periodSeconds: 10
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: registry-key
|
- name: registry-key
|
||||||
---
|
---
|
||||||
@ -669,53 +608,53 @@ spec:
|
|||||||
- name: BasketUrl
|
- name: BasketUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: BasketHealthCheckUrl
|
key: basket__hc
|
||||||
- name: CatalogUrl
|
- name: CatalogUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: CatalogHealthCheckUrl
|
key: catalog__hc
|
||||||
- name: IdentityUrl
|
- name: IdentityUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: IdentityHealthCheckUrl
|
key: identity__hc
|
||||||
- name: OrderingUrl
|
- name: OrderingUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: OrderingHealthCheckUrl
|
key: ordering__hc
|
||||||
- name: LocationsUrl
|
- name: LocationsUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: LocationsHealthCheckUrl
|
key: locations__hc
|
||||||
- name: MarketingUrl
|
- name: MarketingUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: MarketingHealthCheckUrl
|
key: marketing__hc
|
||||||
- name: mvc
|
- name: mvc
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: WebMvcHealthCheckUrl
|
key: mvc__hc
|
||||||
- name: spa
|
- name: spa
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: WebSpaHealthCheckUrl
|
key: spa__hc
|
||||||
- name: PaymentUrl
|
- name: PaymentUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: PaymentHealthCheckUrl
|
key: payment__hc
|
||||||
- name: ApplicationInsights__InstrumentationKey
|
- name: ApplicationInsights__InstrumentationKey
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: Instrumentation_Key
|
key: all__InstrumentationKey
|
||||||
- name: OrchestratorType
|
- name: OrchestratorType
|
||||||
value: 'K8S'
|
value: 'K8S'
|
||||||
ports:
|
ports:
|
||||||
@ -749,76 +688,61 @@ spec:
|
|||||||
key: keystore
|
key: keystore
|
||||||
- name: IsClusterEnv
|
- name: IsClusterEnv
|
||||||
value: 'True'
|
value: 'True'
|
||||||
- name: BasketUrl
|
- name: PurchaseUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: SpaClientBasketExternalUrl
|
key: webshoppingapigw_e
|
||||||
- name: CallBackUrl
|
- name: CallBackUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: SpaClientExternalUrl
|
key: spa_e
|
||||||
- name: CatalogUrl
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: urls
|
|
||||||
key: SpaClientCatalogExternalUrl
|
|
||||||
- name: IdentityUrl
|
- name: IdentityUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: SpaClientIdentityExternalUrl
|
key: identity_e
|
||||||
- name: OrderingUrl
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: urls
|
|
||||||
key: SpaClientOrderingExternalUrl
|
|
||||||
- name: MarketingUrl
|
- name: MarketingUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: SpaClientMarketingExternalUrl
|
key: marketingapigw_e
|
||||||
- name: LocationsUrl
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: urls
|
|
||||||
key: SpaClientLocationsUrl
|
|
||||||
- name: BasketUrlHC
|
- name: BasketUrlHC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: BasketHealthCheckUrl
|
key: basket__hc
|
||||||
- name: CatalogUrlHC
|
- name: CatalogUrlHC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: CatalogHealthCheckUrl
|
key: catalog__hc
|
||||||
- name: IdentityUrlHC
|
- name: IdentityUrlHC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: IdentityHealthCheckUrl
|
key: identity__hc
|
||||||
- name: OrderingUrlHC
|
- name: OrderingUrlHC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: OrderingHealthCheckUrl
|
key: ordering__hc
|
||||||
- name: MarketingUrlHC
|
- name: MarketingUrlHC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: MarketingHealthCheckUrl
|
key: marketing__hc
|
||||||
- name: PaymentUrlHC
|
- name: PaymentUrlHC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: internalurls
|
||||||
key: PaymentHealthCheckUrl
|
key: payment__hc
|
||||||
- name: ApplicationInsights__InstrumentationKey
|
- name: ApplicationInsights__InstrumentationKey
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: Instrumentation_Key
|
key: all__InstrumentationKey
|
||||||
- name: OrchestratorType
|
- name: OrchestratorType
|
||||||
value: 'K8S'
|
value: 'K8S'
|
||||||
ports:
|
ports:
|
||||||
@ -828,14 +752,96 @@ spec:
|
|||||||
path: /hc
|
path: /hc
|
||||||
port: 80
|
port: 80
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 300
|
||||||
periodSeconds: 10
|
periodSeconds: 240
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /hc
|
|
||||||
port: 80
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 60
|
|
||||||
periodSeconds: 10
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: registry-key
|
- name: registry-key
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: webshoppingagg
|
||||||
|
spec:
|
||||||
|
paused: true
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: eshop
|
||||||
|
component: webshoppingagg
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: webshoppingagg
|
||||||
|
image: eshop/webshoppingagg
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: ASPNETCORE_URLS
|
||||||
|
value: http://0.0.0.0:80
|
||||||
|
- name: urls__basket
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: internalurls
|
||||||
|
key: basket
|
||||||
|
- name: urls__catalog
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: internalurls
|
||||||
|
key: catalog
|
||||||
|
- name: urls__orders
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: internalurls
|
||||||
|
key: ordering
|
||||||
|
- name: urls__identity
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: internalurls
|
||||||
|
key: identity
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: registry-key
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: mobileshoppingagg
|
||||||
|
spec:
|
||||||
|
paused: true
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: eshop
|
||||||
|
component: mobileshoppingagg
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: mobileshoppingagg
|
||||||
|
image: eshop/mobileshoppingagg
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: ASPNETCORE_URLS
|
||||||
|
value: http://0.0.0.0:80
|
||||||
|
- name: urls__basket
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: internalurls
|
||||||
|
key: basket
|
||||||
|
- name: urls__catalog
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: internalurls
|
||||||
|
key: catalog
|
||||||
|
- name: urls__orders
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: internalurls
|
||||||
|
key: ordering
|
||||||
|
- name: urls__identity
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: internalurls
|
||||||
|
key: identity
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: registry-key
|
||||||
|
---
|
||||||
|
@ -11,22 +11,10 @@ spec:
|
|||||||
rules:
|
rules:
|
||||||
- http:
|
- http:
|
||||||
paths:
|
paths:
|
||||||
- path: /basket-api
|
|
||||||
backend:
|
|
||||||
serviceName: ocelot
|
|
||||||
servicePort: 80
|
|
||||||
- path: /catalog-api
|
|
||||||
backend:
|
|
||||||
serviceName: ocelot
|
|
||||||
servicePort: 80
|
|
||||||
- path: /identity
|
- path: /identity
|
||||||
backend:
|
backend:
|
||||||
serviceName: identity
|
serviceName: identity
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
- path: /ordering-api
|
|
||||||
backend:
|
|
||||||
serviceName: ocelot
|
|
||||||
servicePort: 80
|
|
||||||
- path: /webmvc
|
- path: /webmvc
|
||||||
backend:
|
backend:
|
||||||
serviceName: webmvc
|
serviceName: webmvc
|
||||||
@ -35,25 +23,37 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: webstatus
|
serviceName: webstatus
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
- path: /marketing-api
|
- path: /webshoppingapigw
|
||||||
backend:
|
backend:
|
||||||
serviceName: ocelot
|
serviceName: ocelotapigw-ws
|
||||||
|
servicePort: 80
|
||||||
|
- path: /webmarketingapigw
|
||||||
|
backend:
|
||||||
|
serviceName: ocelotapigw-wm
|
||||||
|
servicePort: 80
|
||||||
|
- path: /mobilemarketingapigw
|
||||||
|
backend:
|
||||||
|
serviceName: ocelotapigw-mm
|
||||||
|
servicePort: 80
|
||||||
|
- path: /mobileshoppingapigw
|
||||||
|
backend:
|
||||||
|
serviceName: ocelotapigw-ms
|
||||||
|
servicePort: 80
|
||||||
|
- path: /webshoppingagg
|
||||||
|
backend:
|
||||||
|
serviceName: webshoppingagg
|
||||||
|
servicePort: 80
|
||||||
|
- path: /mobileshoppingagg
|
||||||
|
backend:
|
||||||
|
serviceName: mobileshoppingagg
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
- path: /payment-api
|
- path: /payment-api
|
||||||
backend:
|
backend:
|
||||||
serviceName: ocelot
|
serviceName: payment
|
||||||
servicePort: 80
|
|
||||||
- path: /locations-api
|
|
||||||
backend:
|
|
||||||
serviceName: ocelot
|
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
- path: /
|
- path: /
|
||||||
backend:
|
backend:
|
||||||
serviceName: webspa
|
serviceName: webspa
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
- path: /ocelot
|
|
||||||
backend:
|
|
||||||
serviceName: ocelot
|
|
||||||
servicePort: 80
|
|
||||||
|
|
||||||
|
|
||||||
|
31
k8s/internalurls.yaml
Normal file
31
k8s/internalurls.yaml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: internalurls
|
||||||
|
labels:
|
||||||
|
app: eshop
|
||||||
|
data:
|
||||||
|
# Internal Services & healthchecks
|
||||||
|
basket: http://basket
|
||||||
|
basket__hc: http://basket/hc
|
||||||
|
catalog: http://catalog
|
||||||
|
catalog__hc: http://catalog/hc
|
||||||
|
identity: http://identity
|
||||||
|
identity__hc: http://identity/hc
|
||||||
|
ordering: http://ordering
|
||||||
|
ordering__hc: http://ordering/hc
|
||||||
|
marketing: http://marketing
|
||||||
|
marketing__hc: http://marketing/hc
|
||||||
|
locations: http://locations
|
||||||
|
locations__hc: http://locations/hc
|
||||||
|
payment__hc: http://payment/hc
|
||||||
|
mvc__hc: http://webmvc/hc
|
||||||
|
spa__hc: http://webspa/hc
|
||||||
|
# Aggreggators
|
||||||
|
mobileshoppingagg: http://mobileshoppingagg
|
||||||
|
webshoppingagg: http://webshoppingagg
|
||||||
|
# API GWs
|
||||||
|
apigwmm: http://ocelotapigw-mm
|
||||||
|
apigwms: http://ocelotapigw-ms
|
||||||
|
apigwwm: http://ocelotapigw-wm
|
||||||
|
apigwws: http://ocelotapigw-ws
|
34
k8s/ocelot/configuration-mobile-marketing.json
Normal file
34
k8s/ocelot/configuration-mobile-marketing.json
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"ReRoutes": [
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "marketing",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/m/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "locations",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/l/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
}
|
||||||
|
|
||||||
|
],
|
||||||
|
"GlobalConfiguration": {
|
||||||
|
"RequestIdKey": "OcRequestId",
|
||||||
|
"AdministrationPath": "/administration"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
142
k8s/ocelot/configuration-mobile-shopping.json
Normal file
142
k8s/ocelot/configuration-mobile-shopping.json
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
{
|
||||||
|
"ReRoutes": [
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "catalog",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/c/{everything}",
|
||||||
|
"UpstreamHttpMethod": [ "GET" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "basket",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/b/{everything}",
|
||||||
|
"UpstreamHttpMethod": [],
|
||||||
|
"AuthenticationOptions": {
|
||||||
|
"AuthenticationProviderKey": "IdentityApiKey",
|
||||||
|
"AllowedScopes": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "ordering",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/o/{everything}",
|
||||||
|
"UpstreamHttpMethod": [],
|
||||||
|
"AuthenticationOptions": {
|
||||||
|
"AuthenticationProviderKey": "IdentityApiKey",
|
||||||
|
"AllowedScopes": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "webshoppingagg",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/{everything}",
|
||||||
|
"UpstreamHttpMethod": [ "POST", "PUT", "GET" ],
|
||||||
|
"AuthenticationOptions": {
|
||||||
|
"AuthenticationProviderKey": "IdentityApiKey",
|
||||||
|
"AllowedScopes": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "ordering",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/orders-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "basket",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/basket-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "catalog",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/catalog-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "marketing",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/marketing-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "payment",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/payment-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "locations.api",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/location-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
}
|
||||||
|
|
||||||
|
],
|
||||||
|
"GlobalConfiguration": {
|
||||||
|
"RequestIdKey": "OcRequestId",
|
||||||
|
"AdministrationPath": "/administration"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
34
k8s/ocelot/configuration-web-marketing.json
Normal file
34
k8s/ocelot/configuration-web-marketing.json
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"ReRoutes": [
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "marketing",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/m/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "locations",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/l/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
}
|
||||||
|
|
||||||
|
],
|
||||||
|
"GlobalConfiguration": {
|
||||||
|
"RequestIdKey": "OcRequestId",
|
||||||
|
"AdministrationPath": "/administration"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
142
k8s/ocelot/configuration-web-shopping.json
Normal file
142
k8s/ocelot/configuration-web-shopping.json
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
{
|
||||||
|
"ReRoutes": [
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "catalog",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/c/{everything}",
|
||||||
|
"UpstreamHttpMethod": [ "GET" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "basket",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/b/{everything}",
|
||||||
|
"UpstreamHttpMethod": [],
|
||||||
|
"AuthenticationOptions": {
|
||||||
|
"AuthenticationProviderKey": "IdentityApiKey",
|
||||||
|
"AllowedScopes": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "ordering",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/o/{everything}",
|
||||||
|
"UpstreamHttpMethod": [],
|
||||||
|
"AuthenticationOptions": {
|
||||||
|
"AuthenticationProviderKey": "IdentityApiKey",
|
||||||
|
"AllowedScopes": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "webshoppingagg",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/{everything}",
|
||||||
|
"UpstreamHttpMethod": [ "POST", "PUT", "GET" ],
|
||||||
|
"AuthenticationOptions": {
|
||||||
|
"AuthenticationProviderKey": "IdentityApiKey",
|
||||||
|
"AllowedScopes": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "ordering",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/orders-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "basket",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/basket-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "catalog",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/catalog-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "marketing",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/marketing-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "payment",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/payment-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "locations.api",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/location-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
}
|
||||||
|
|
||||||
|
],
|
||||||
|
"GlobalConfiguration": {
|
||||||
|
"RequestIdKey": "OcRequestId",
|
||||||
|
"AdministrationPath": "/administration"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,58 +0,0 @@
|
|||||||
{
|
|
||||||
"ReRoutes": [
|
|
||||||
{
|
|
||||||
"DownstreamPathTemplate": "/{everything}",
|
|
||||||
"DownstreamScheme": "http",
|
|
||||||
"DownstreamHost": "ordering",
|
|
||||||
"DownstreamPort": 80,
|
|
||||||
"UpstreamPathTemplate": "/ordering-api/{everything}",
|
|
||||||
"UpstreamHttpMethod": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DownstreamPathTemplate": "/{everything}",
|
|
||||||
"DownstreamScheme": "http",
|
|
||||||
"DownstreamHost": "basket",
|
|
||||||
"DownstreamPort": 80,
|
|
||||||
"UpstreamPathTemplate": "/basket-api/{everything}",
|
|
||||||
"UpstreamHttpMethod": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DownstreamPathTemplate": "/{everything}",
|
|
||||||
"DownstreamScheme": "http",
|
|
||||||
"DownstreamHost": "catalog",
|
|
||||||
"DownstreamPort": 80,
|
|
||||||
"UpstreamPathTemplate": "/catalog-api/{everything}",
|
|
||||||
"UpstreamHttpMethod": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DownstreamPathTemplate": "/{everything}",
|
|
||||||
"DownstreamScheme": "http",
|
|
||||||
"DownstreamHost": "marketing",
|
|
||||||
"DownstreamPort": 80,
|
|
||||||
"UpstreamPathTemplate": "/marketing-api/{everything}",
|
|
||||||
"UpstreamHttpMethod": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DownstreamPathTemplate": "/{everything}",
|
|
||||||
"DownstreamScheme": "http",
|
|
||||||
"DownstreamHost": "payment",
|
|
||||||
"DownstreamPort": 80,
|
|
||||||
"UpstreamPathTemplate": "/payment-api/{everything}",
|
|
||||||
"UpstreamHttpMethod": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DownstreamPathTemplate": "/{everything}",
|
|
||||||
"DownstreamScheme": "http",
|
|
||||||
"DownstreamHost": "locations",
|
|
||||||
"DownstreamPort": 80,
|
|
||||||
"UpstreamPathTemplate": "/location-api/{everything}",
|
|
||||||
"UpstreamHttpMethod": []
|
|
||||||
}
|
|
||||||
|
|
||||||
],
|
|
||||||
"GlobalConfiguration": {
|
|
||||||
"RequestIdKey": "OcRequestId",
|
|
||||||
"AdministrationPath": "/administration"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +1,27 @@
|
|||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: ocelot
|
name: apigwmm
|
||||||
spec:
|
spec:
|
||||||
paused: true
|
paused: true
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: eshop
|
app: eshop
|
||||||
component: ocelot
|
component: apigwmm
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: ocelot
|
- name: apigwmm
|
||||||
image: eshop/ocelotapigw
|
image: eshop/ocelotapigw-mm
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: PATH_BASE
|
||||||
|
value: /mobilemarketingapigw
|
||||||
|
- name: IdentityUrl
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: internalurls
|
||||||
|
key: identity
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@ -24,8 +32,124 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: ocelot
|
name: ocelot
|
||||||
items:
|
items:
|
||||||
- key: configuration.json
|
- key: mm
|
||||||
|
path: configuration.json
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: registry-key
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: apigwms
|
||||||
|
spec:
|
||||||
|
paused: true
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: eshop
|
||||||
|
component: apigwms
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: apigwms
|
||||||
|
image: eshop/ocelotapigw-ms
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: PATH_BASE
|
||||||
|
value: /mobileshoppingapigw
|
||||||
|
- name: IdentityUrl
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: internalurls
|
||||||
|
key: identity
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /app/configuration
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
configMap:
|
||||||
|
name: ocelot
|
||||||
|
items:
|
||||||
|
- key: ms
|
||||||
|
path: configuration.json
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: registry-key
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: apigwwm
|
||||||
|
spec:
|
||||||
|
paused: true
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: eshop
|
||||||
|
component: apigwwm
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: apigwwm
|
||||||
|
image: eshop/ocelotapigw-wm
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: PATH_BASE
|
||||||
|
value: /webmarketingapigw
|
||||||
|
- name: IdentityUrl
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: internalurls
|
||||||
|
key: identity
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /app/configuration
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
configMap:
|
||||||
|
name: ocelot
|
||||||
|
items:
|
||||||
|
- key: wm
|
||||||
|
path: configuration.json
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: registry-key
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: apigwws
|
||||||
|
spec:
|
||||||
|
paused: true
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: eshop
|
||||||
|
component: apigwws
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: apigwws
|
||||||
|
image: eshop/ocelotapigw-ws
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: PATH_BASE
|
||||||
|
value: /webshoppingapigw
|
||||||
|
- name: IdentityUrl
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: internalurls
|
||||||
|
key: identity
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /app/configuration
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
configMap:
|
||||||
|
name: ocelot
|
||||||
|
items:
|
||||||
|
- key: ws
|
||||||
path: configuration.json
|
path: configuration.json
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: registry-key
|
- name: registry-key
|
||||||
|
|
||||||
|
@ -3,11 +3,53 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: eshop
|
app: eshop
|
||||||
component: ocelot
|
component: ocelotapigw-mm
|
||||||
name: ocelot
|
name: ocelotapigw-mm
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
selector:
|
selector:
|
||||||
app: eshop
|
app: eshop
|
||||||
component: ocelot
|
component: apigwmm
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: eshop
|
||||||
|
component: ocelotapigw-ms
|
||||||
|
name: ocelotapigw-ms
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
selector:
|
||||||
|
app: eshop
|
||||||
|
component: apigwms
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: eshop
|
||||||
|
component: ocelotapigw-wm
|
||||||
|
name: ocelotapigw-wm
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
selector:
|
||||||
|
app: eshop
|
||||||
|
component: apigwwm
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: eshop
|
||||||
|
component: ocelotapigw-ws
|
||||||
|
name: ocelotapigw-ws
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
selector:
|
||||||
|
app: eshop
|
||||||
|
component: apigwws
|
||||||
|
@ -70,6 +70,12 @@ namespace OcelotApiGw
|
|||||||
|
|
||||||
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
|
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
|
||||||
{
|
{
|
||||||
|
var pathBase = _cfg["PATH_BASE"];
|
||||||
|
if (!string.IsNullOrEmpty(pathBase))
|
||||||
|
{
|
||||||
|
app.UsePathBase(pathBase);
|
||||||
|
}
|
||||||
|
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
@ -1 +1,34 @@
|
|||||||
{}
|
{
|
||||||
|
"ReRoutes": [
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "marketing.api",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/m/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "locations.api",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/l/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
}
|
||||||
|
|
||||||
|
],
|
||||||
|
"GlobalConfiguration": {
|
||||||
|
"RequestIdKey": "OcRequestId",
|
||||||
|
"AdministrationPath": "/administration"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1 +1,142 @@
|
|||||||
{}
|
{
|
||||||
|
"ReRoutes": [
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "catalog.api",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/c/{everything}",
|
||||||
|
"UpstreamHttpMethod": [ "GET" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "basket.api",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/b/{everything}",
|
||||||
|
"UpstreamHttpMethod": [],
|
||||||
|
"AuthenticationOptions": {
|
||||||
|
"AuthenticationProviderKey": "IdentityApiKey",
|
||||||
|
"AllowedScopes": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{version}/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "ordering.api",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{version}/o/{everything}",
|
||||||
|
"UpstreamHttpMethod": [],
|
||||||
|
"AuthenticationOptions": {
|
||||||
|
"AuthenticationProviderKey": "IdentityApiKey",
|
||||||
|
"AllowedScopes": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "webshoppingagg",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/{everything}",
|
||||||
|
"UpstreamHttpMethod": [ "POST", "PUT", "GET" ],
|
||||||
|
"AuthenticationOptions": {
|
||||||
|
"AuthenticationProviderKey": "IdentityApiKey",
|
||||||
|
"AllowedScopes": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "ordering.api",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/orders-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "basket.api",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/basket-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "catalog.api",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/catalog-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "marketing.api",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/marketing-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "payment.api",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/payment-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{everything}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "locations.api",
|
||||||
|
"Port": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/location-api/{everything}",
|
||||||
|
"UpstreamHttpMethod": []
|
||||||
|
}
|
||||||
|
|
||||||
|
],
|
||||||
|
"GlobalConfiguration": {
|
||||||
|
"RequestIdKey": "OcRequestId",
|
||||||
|
"AdministrationPath": "/administration"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user