Upfate catalog config on k8s
This commit is contained in:
parent
3f560757a4
commit
cc6c443216
@ -9,6 +9,7 @@ data:
|
|||||||
BasketRedisConStr: basket-data
|
BasketRedisConStr: basket-data
|
||||||
CatalogBus: rabbitmq
|
CatalogBus: rabbitmq
|
||||||
CatalogSqlDb: Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word;
|
CatalogSqlDb: Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word;
|
||||||
|
CatalogAzureStorageEnabled: "False"
|
||||||
IdentitySqlDb: Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.IdentityDb;User Id=sa;Password=Pass@word;
|
IdentitySqlDb: Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.IdentityDb;User Id=sa;Password=Pass@word;
|
||||||
LocationsBus: rabbitmq
|
LocationsBus: rabbitmq
|
||||||
LocationsNoSqlDb: mongodb://nosql-data
|
LocationsNoSqlDb: mongodb://nosql-data
|
||||||
@ -23,4 +24,4 @@ data:
|
|||||||
GracePeriodTime: "1"
|
GracePeriodTime: "1"
|
||||||
GracePeriodCheckUpdateTime: "60000"
|
GracePeriodCheckUpdateTime: "60000"
|
||||||
UseAzureServiceBus: "False"
|
UseAzureServiceBus: "False"
|
||||||
keystore: keystore-data
|
keystore: keystore-data
|
||||||
|
@ -134,13 +134,14 @@ Write-Host "Using $externalDns as the external DNS/IP of the k8s cluster"
|
|||||||
ExecKube -cmd 'create configmap urls `
|
ExecKube -cmd 'create configmap urls `
|
||||||
--from-literal=BasketUrl=http://basket `
|
--from-literal=BasketUrl=http://basket `
|
||||||
--from-literal=BasketHealthCheckUrl=http://basket/hc `
|
--from-literal=BasketHealthCheckUrl=http://basket/hc `
|
||||||
--from-literal=CatalogUrl=http://$($frontendUrl)/catalog-api `
|
--from-literal=CatalogUrl=http://$($externalDns)/catalog-api `
|
||||||
--from-literal=CatalogHealthCheckUrl=http://catalog/hc `
|
--from-literal=CatalogHealthCheckUrl=http://catalog/hc `
|
||||||
--from-literal=IdentityUrl=http://$($frontendUrl)/identity `
|
--from-literal=PicBaseUrl=http://$($externalDns)/catalog-api/api/v1/pic/ `
|
||||||
|
--from-literal=IdentityUrl=http://$($externalDns)/identity `
|
||||||
--from-literal=IdentityHealthCheckUrl=http://identity/hc `
|
--from-literal=IdentityHealthCheckUrl=http://identity/hc `
|
||||||
--from-literal=OrderingUrl=http://ordering `
|
--from-literal=OrderingUrl=http://ordering `
|
||||||
--from-literal=OrderingHealthCheckUrl=http://ordering/hc `
|
--from-literal=OrderingHealthCheckUrl=http://ordering/hc `
|
||||||
--from-literal=MvcClientExternalUrl=http://$($frontendUrl)/webmvc `
|
--from-literal=MvcClientExternalUrl=http://$($externalDns)/webmvc `
|
||||||
--from-literal=WebMvcHealthCheckUrl=http://webmvc/hc `
|
--from-literal=WebMvcHealthCheckUrl=http://webmvc/hc `
|
||||||
--from-literal=MvcClientOrderingUrl=http://ordering `
|
--from-literal=MvcClientOrderingUrl=http://ordering `
|
||||||
--from-literal=MvcClientCatalogUrl=http://catalog `
|
--from-literal=MvcClientCatalogUrl=http://catalog `
|
||||||
@ -192,5 +193,5 @@ 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'
|
||||||
|
|
||||||
Write-Host "WebSPA is exposed at http://$frontendUrl, WebMVC at http://$frontendUrl/webmvc, WebStatus at http://$frontendUrl/webstatus" -ForegroundColor Yellow
|
Write-Host "WebSPA is exposed at http://$externalDns, WebMVC at http://$externalDns/webmvc, WebStatus at http://$externalDns/webstatus" -ForegroundColor Yellow
|
||||||
|
|
||||||
|
@ -66,11 +66,16 @@ spec:
|
|||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: externalcfg
|
name: externalcfg
|
||||||
key: CatalogSqlDb
|
key: CatalogSqlDb
|
||||||
- name: ExternalCatalogBaseUrl
|
- name: PicBaseUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: urls
|
name: urls
|
||||||
key: CatalogUrl
|
key: PicBaseUrl
|
||||||
|
- name: AzureStorageEnabled
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: urls
|
||||||
|
key: CatalogAzureStorageEnabled
|
||||||
- name: EventBusConnection
|
- name: EventBusConnection
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user