updated charts for local k8s deployment
This commit is contained in:
parent
9367c320fa
commit
dc2e7c215b
@ -25,7 +25,7 @@ app: # app global settings
|
|||||||
webhooks: webhooks-api # ingress entry for webhooks api
|
webhooks: webhooks-api # ingress entry for webhooks api
|
||||||
webhooksweb: webhooks-web # ingress entry for webhooks web demo client
|
webhooksweb: webhooks-web # ingress entry for webhooks web demo client
|
||||||
svc:
|
svc:
|
||||||
basket: basket-apo # service name for basket api
|
basket: basket-api # service name for basket api
|
||||||
catalog: catalog-api # service name for catalog api
|
catalog: catalog-api # service name for catalog api
|
||||||
ordering: ordering-api # service name for ordering api
|
ordering: ordering-api # service name for ordering api
|
||||||
orderingbackgroundtasks: ordering-backgroundtasks # service name for orderingbackgroundtasks
|
orderingbackgroundtasks: ordering-backgroundtasks # service name for orderingbackgroundtasks
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{{- $name := include "basket-api.fullname" . -}}
|
{{- $name := include "basket-api.fullname" . -}}
|
||||||
{{- $identity := include "url-of" (list .Values.app.ingress.entries.identity .) -}}
|
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@ -12,7 +11,7 @@ metadata:
|
|||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
data:
|
data:
|
||||||
basket__ConnectionString: {{ .Values.inf.redis.basket.constr }}
|
basket__ConnectionString: {{ .Values.inf.redis.basket.constr }}
|
||||||
urls__IdentityUrl: http://{{ $identity }}
|
urls__IdentityUrl: http://{{ .Values.app.svc.identity }}
|
||||||
basket__EnableLoadTest: "{{ .Values.inf.misc.useLoadTest }}"
|
basket__EnableLoadTest: "{{ .Values.inf.misc.useLoadTest }}"
|
||||||
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
|
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
|
||||||
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
|
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
|
||||||
|
@ -24,3 +24,6 @@ data:
|
|||||||
internalurls__marketing__hc: http://{{ .Values.app.svc.marketing }}/hc
|
internalurls__marketing__hc: http://{{ .Values.app.svc.marketing }}/hc
|
||||||
internalurls__payment__hc: http://{{ .Values.app.svc.payment }}/hc
|
internalurls__payment__hc: http://{{ .Values.app.svc.payment }}/hc
|
||||||
internalurls__location__hc: http://{{ .Values.app.svc.locations }}/hc
|
internalurls__location__hc: http://{{ .Values.app.svc.locations }}/hc
|
||||||
|
internalurls__grpcBasket: "http://{{ .Values.app.svc.basket }}:{{ .Values.service.grpcPort }}"
|
||||||
|
internalurls__grpcCatalog: "http://{{ .Values.app.svc.catalog }}:{{ .Values.service.grpcPort }}"
|
||||||
|
internalurls__grpcOrdering: "http://{{ .Values.app.svc.ordering }}:{{ .Values.service.grpcPort }}"
|
||||||
|
@ -10,6 +10,7 @@ image:
|
|||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
grpcPort: 81
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
@ -54,6 +55,12 @@ env:
|
|||||||
key: internalurls__payment__hc
|
key: internalurls__payment__hc
|
||||||
- name: LocationUrlHC
|
- name: LocationUrlHC
|
||||||
key: internalurls__location__hc
|
key: internalurls__location__hc
|
||||||
|
- name: urls__grpcBasket
|
||||||
|
key: internalurls__grpcBasket
|
||||||
|
- name: urls__grpcCatalog
|
||||||
|
key: internalurls__grpcCatalog
|
||||||
|
- name: urls__grpcOrdering
|
||||||
|
key: internalurls__grpcOrdering
|
||||||
# values define environment variables with a fixed value (no configmap involved) (name is name of var, and value is its value)
|
# values define environment variables with a fixed value (no configmap involved) (name is name of var, and value is its value)
|
||||||
values:
|
values:
|
||||||
- name: ASPNETCORE_ENVIRONMENT
|
- name: ASPNETCORE_ENVIRONMENT
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{{- $name := include "ordering-api.fullname" . -}}
|
{{- $name := include "ordering-api.fullname" . -}}
|
||||||
{{- $sqlsrv := include "sql-name" . -}}
|
{{- $sqlsrv := include "sql-name" . -}}
|
||||||
{{- $identity := include "url-of" (list .Values.app.ingress.entries.identity .) -}}
|
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@ -14,7 +13,7 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
ordering__ConnectionString: Server={{ $sqlsrv }};Initial Catalog={{ .Values.inf.sql.ordering.db }};User Id={{ .Values.inf.sql.common.user }};Password={{ .Values.inf.sql.common.pwd }};
|
ordering__ConnectionString: Server={{ $sqlsrv }};Initial Catalog={{ .Values.inf.sql.ordering.db }};User Id={{ .Values.inf.sql.common.user }};Password={{ .Values.inf.sql.common.pwd }};
|
||||||
ordering__EnableLoadTest: "{{ .Values.inf.misc.useLoadTest }}"
|
ordering__EnableLoadTest: "{{ .Values.inf.misc.useLoadTest }}"
|
||||||
urls__IdentityUrl: http://{{ $identity }}
|
urls__IdentityUrl: http://{{ .Values.app.svc.identity }}
|
||||||
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
|
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
|
||||||
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
|
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
|
||||||
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
|
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
|
@ -24,3 +24,6 @@ data:
|
|||||||
internalurls__marketing__hc: http://{{ .Values.app.svc.marketing }}/hc
|
internalurls__marketing__hc: http://{{ .Values.app.svc.marketing }}/hc
|
||||||
internalurls__payment__hc: http://{{ .Values.app.svc.payment }}/hc
|
internalurls__payment__hc: http://{{ .Values.app.svc.payment }}/hc
|
||||||
internalurls__location__hc: http://{{ .Values.app.svc.locations }}/hc
|
internalurls__location__hc: http://{{ .Values.app.svc.locations }}/hc
|
||||||
|
internalurls__grpcBasket: "http://{{ .Values.app.svc.basket }}:{{ .Values.service.grpcPort }}"
|
||||||
|
internalurls__grpcCatalog: "http://{{ .Values.app.svc.catalog }}:{{ .Values.service.grpcPort }}"
|
||||||
|
internalurls__grpcOrdering: "http://{{ .Values.app.svc.ordering }}:{{ .Values.service.grpcPort }}"
|
||||||
|
@ -10,6 +10,7 @@ image:
|
|||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
grpcPort: 81
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
@ -54,6 +55,13 @@ env:
|
|||||||
key: internalurls__payment__hc
|
key: internalurls__payment__hc
|
||||||
- name: LocationUrlHC
|
- name: LocationUrlHC
|
||||||
key: internalurls__location__hc
|
key: internalurls__location__hc
|
||||||
|
- name: urls__grpcBasket
|
||||||
|
key: internalurls__grpcBasket
|
||||||
|
- name: urls__grpcCatalog
|
||||||
|
key: internalurls__grpcCatalog
|
||||||
|
- name: urls__grpcOrdering
|
||||||
|
key: internalurls__grpcOrdering
|
||||||
|
|
||||||
# values define environment variables with a fixed value (no configmap involved) (name is name of var, and value is its value)
|
# values define environment variables with a fixed value (no configmap involved) (name is name of var, and value is its value)
|
||||||
values:
|
values:
|
||||||
- name: ASPNETCORE_ENVIRONMENT
|
- name: ASPNETCORE_ENVIRONMENT
|
||||||
|
@ -34,9 +34,10 @@ namespace Microsoft.eShopOnContainers.WebMVC.Services
|
|||||||
public async Task<Basket> GetBasket(ApplicationUser user)
|
public async Task<Basket> GetBasket(ApplicationUser user)
|
||||||
{
|
{
|
||||||
var uri = API.Basket.GetBasket(_basketByPassUrl, user.Id);
|
var uri = API.Basket.GetBasket(_basketByPassUrl, user.Id);
|
||||||
|
_logger.LogDebug($"[GetBasket] -> Calling {uri} to get the basket");
|
||||||
var responseString = await _apiClient.GetStringAsync(uri);
|
var response = await _apiClient.GetAsync(uri);
|
||||||
|
_logger.LogDebug($"[GetBasket] -> response code {response.StatusCode}");
|
||||||
|
var responseString = await response.Content.ReadAsStringAsync();
|
||||||
return string.IsNullOrEmpty(responseString) ?
|
return string.IsNullOrEmpty(responseString) ?
|
||||||
new Basket() { BuyerId = user.Id } :
|
new Basket() { BuyerId = user.Id } :
|
||||||
JsonConvert.DeserializeObject<Basket>(responseString);
|
JsonConvert.DeserializeObject<Basket>(responseString);
|
||||||
|
12
src/Web/WebMVC/appsettings.Development.json
Normal file
12
src/Web/WebMVC/appsettings.Development.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Debug"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Serilog": {
|
||||||
|
"MinimumLevel": {
|
||||||
|
"Default": "Debug"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user