Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Enhance Open Telemetry specific features #1663

Open
wants to merge 80 commits into
base: feature/open-telemetry
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
18e39fd
Enabled Instrumentations with OpenTelemetry
sughosneo Apr 7, 2021
a71b004
updated CardType and Enumeration classes (#1528)
mfcallahan Apr 8, 2021
516de21
Refactored opentelemetry module to a common project
sughosneo Apr 9, 2021
6012fb0
Fix aggregator address (#1646)
mseada94 Apr 12, 2021
6093ec0
Included Zipkin helm chart
sughosneo Apr 13, 2021
c01ac6e
Updated Ingress API version
sughosneo Apr 13, 2021
ef548da
Included tracing for WebMVC
sughosneo Apr 13, 2021
d0cd283
Update sdk tag (#1647)
richlander Apr 13, 2021
acb304c
Adding deploy workflows and script
colindembovsky Apr 14, 2021
996da77
Update checkout from @v1 to @v2
colindembovsky Apr 15, 2021
8414627
Update chart-root to CHART_ROOT
colindembovsky Apr 15, 2021
ede057c
Update chart to CHART
colindembovsky Apr 15, 2021
7343ceb
Update namespace to NAMESPACE
colindembovsky Apr 15, 2021
c152b03
Remove app-name
colindembovsky Apr 15, 2021
391de9f
Update DeployToK8s to deploy-to-k8s
colindembovsky Apr 15, 2021
9affd62
Adding unit tests
colindembovsky Apr 15, 2021
d261523
Revert
colindembovsky Apr 15, 2021
e858b1a
Full revert
colindembovsky Apr 15, 2021
53ad2d1
Adding unit tests
colindembovsky Apr 15, 2021
c6763a2
Add workflow_dispatch
colindembovsky Apr 15, 2021
99e8631
Change working dir
colindembovsky Apr 15, 2021
47ca568
Adding workflow_dispatch and unit tests
colindembovsky Apr 15, 2021
17dc8ef
Adding unit tests
colindembovsky Apr 15, 2021
f388b4f
Up verbosity
colindembovsky Apr 15, 2021
95fc219
Update arg
colindembovsky Apr 15, 2021
87016c3
Change verbosity to only test
colindembovsky Apr 15, 2021
5ec0228
Fixing dotnet test cmd
colindembovsky Apr 15, 2021
e10f9c1
Fix file name
colindembovsky Apr 15, 2021
e367740
Fix perms
colindembovsky Apr 15, 2021
d8c6578
Fix casing
colindembovsky Apr 15, 2021
6f29ec5
Fixing casing
colindembovsky Apr 15, 2021
81f0576
Updated sockjs package (#1651)
Apr 21, 2021
f66dadf
Merge branch 'dev' of github.com:dotnet-architecture/eShopOnContainer…
colindembovsky Apr 23, 2021
374cf8d
Prevent deploy jobs
colindembovsky Apr 23, 2021
c4d40f1
Prevent deploy jobs
colindembovsky Apr 23, 2021
19baeb7
Migrates from Newtonsoft.Json to System.Text.Json (#1658)
May 3, 2021
911a5c5
Enabled zipkin configuration
sughosneo May 5, 2021
fb657f0
Bump merge from 1.2.1 to 2.1.1 in /src/Web/WebSPA (#1662)
dependabot[bot] May 5, 2021
6007bdc
Updated xmlhttprequest-ssl package to 1.6.2 (#1664)
May 5, 2021
6b0890f
Bump handlebars from 4.7.6 to 4.7.7 in /src/Web/WebSPA (#1665)
dependabot[bot] May 7, 2021
6556c4f
Bump url-parse from 1.4.7 to 1.5.1 in /src/Web/WebSPA (#1666)
dependabot[bot] May 7, 2021
3521fb8
Bump lodash from 4.17.20 to 4.17.21 in /src/Web/WebSPA (#1667)
dependabot[bot] May 7, 2021
2b8b6b5
Updated package versions (#1669)
May 7, 2021
bf7ade8
Update CardType.cs (#1674)
IEvangelist May 17, 2021
1cbd218
Updates the postcss package version (#1672)
May 17, 2021
37aeace
Updated dns-packet package to version 5.2.2 (#1682)
May 26, 2021
ad7ff76
Bump browserslist from 4.16.0 to 4.16.6 in /src/Web/WebSPA (#1679)
dependabot[bot] May 26, 2021
8ed2587
Added EventBus.Tests to solution (#1684)
sanderobdeijn May 31, 2021
be9ce6d
Update keyvault sdk from t1 to t2 (#1685)
zedy-wj Jun 8, 2021
e8fd578
Bump ws from 6.2.1 to 6.2.2 in /src/Web/WebSPA (#1694)
dependabot[bot] Jun 8, 2021
d49334b
Updated packages (#1695)
Jun 8, 2021
08d3a2b
Updated package (#1696)
Jun 9, 2021
dbf782d
Initial eShop-Learn version
mvelosop Jun 15, 2021
bbe423c
Initial version running
mvelosop Jun 15, 2021
c60a493
Fix catalog search error
mvelosop Jun 15, 2021
ae45ffb
Remove campaigns, marketing and coupon-related components
mvelosop Jun 15, 2021
7d26ef8
Initial SPA application working
mvelosop Jun 15, 2021
07e0bfe
running version without refresh page error
mvelosop Jun 17, 2021
2a0db63
Update to .NET 5
mvelosop Jun 17, 2021
4bf3079
Update target js version
mvelosop Jun 17, 2021
4bf0db6
Update to Angular 9
mvelosop Jun 17, 2021
c8a8884
Update packages required by Angular 10
mvelosop Jun 17, 2021
c7f482d
install packages for Angular 9
mvelosop Jun 17, 2021
066b055
Angular 10 version running
mvelosop Jun 17, 2021
67c248b
Update versions in package.json
mvelosop Jun 17, 2021
9194b2c
Update other packages to latest versions
mvelosop Jun 17, 2021
4b0c2c5
Handle SPA/MVC branding for login and registration views
mvelosop Jun 18, 2021
7405eba
Update README, catalog image files and MVC page size
mvelosop Jun 21, 2021
5afcd37
Update item images
mvelosop Jun 22, 2021
e9aa525
Merge pull request #1705 from dotnet-architecture/feature/refresh-spa…
mvelosop Jun 22, 2021
e858ac0
Update Angular version to 11.2
mvelosop Jun 25, 2021
8c27163
Merge pull request #1711 from dotnet-architecture/update/angular-version
mvelosop Jun 25, 2021
6982f0e
Correct typo error in Shipping Address (#1712)
kaypee90 Jun 28, 2021
6381df5
Updates npm packages (#1710)
Jun 28, 2021
2afc003
Included Envoyproxy filrewall rules in the script (#1704)
Jun 28, 2021
6946735
Included feedback
sughosneo Jun 29, 2021
8bb15ce
Updated npm packages (#1714)
Jun 30, 2021
5c57b8c
Binding queue using existing cosumerChannel (#1716)
alan0428a Jul 7, 2021
8099d27
Merge branch 'dev' into feature/enable-telemetry
sughosneo Jul 7, 2021
0601707
Updated project files
sughosneo Jul 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions deploy/k8s/helm/apigwms/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $ingressPath := include "pathBase" . -}}
{{- $serviceName := .Values.app.svc.mobileshoppingapigw -}}

apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: {{ template "apigwms.fullname" . }}
Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s/helm/apigwws/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $ingressPath := include "pathBase" . -}}
{{- $serviceName := .Values.app.svc.webshoppingapigw -}}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: {{ template "apigwws.fullname" . }}
Expand Down
2 changes: 2 additions & 0 deletions deploy/k8s/helm/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ app: # app global settings
payment: payment-api # ingress entry for payment api
webhooks: webhooks-api # ingress entry for webhooks api
webhooksweb: webhooks-web # ingress entry for webhooks web demo client
zipkin: zipkin # ingress entry for the Zipkin tracing tool.
svc:
basket: basket-api # service name for basket api
catalog: catalog-api # service name for catalog api
Expand All @@ -36,3 +37,4 @@ app: # app global settings
payment: payment-api # service name for payment api
webhooks: webhooks-api # service name for webhooks api
webhooksweb: webhooks-client # service name for webhooks web
zipkin: zipkin # service name for Zipkin
4 changes: 3 additions & 1 deletion deploy/k8s/helm/basket-api/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- $name := include "basket-api.fullname" . -}}
{{- $zipkin := include "url-of" (list .Values.app.ingress.entries.zipkin .) -}}

apiVersion: v1
kind: ConfigMap
Expand All @@ -14,4 +15,5 @@ data:
urls__IdentityUrl: http://{{ .Values.app.svc.identity }}
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
urls__Otel__ExporterEndpoint: http://{{ .Values.app.svc.zipkin }}:9411/api/v2/spans
6 changes: 5 additions & 1 deletion deploy/k8s/helm/basket-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,18 @@ env:
key: all__UseAzureServiceBus
- name: IdentityUrl
key: urls__IdentityUrl
- name: OTEL_EXPORTER_TOOL_ENDPOINT
key: urls__Otel__ExporterEndpoint
# values define environment variables with a fixed value (no configmap involved) (name is name of var, and value is its value)
values:
- name: OrchestratorType
value: 'K8S'
- name: PORT
value: "80"
- name: GRPC_PORT
value: "81"
value: "81"
- name: OTEL_USE_EXPORTER
value: 'zipkin'
probes:
liveness:
path: /liveness
Expand Down
4 changes: 3 additions & 1 deletion deploy/k8s/helm/catalog-api/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{{- $sqlsrv := include "sql-name" . -}}
{{- $webshoppingapigw := include "url-of" (list .Values.app.ingress.entries.webshoppingapigw .) -}}
{{- $protocol := include "protocol" . -}}
{{- $zipkin := include "url-of" (list .Values.app.ingress.entries.zipkin .) -}}

apiVersion: v1
kind: ConfigMap
Expand All @@ -18,4 +19,5 @@ data:
catalog__AzureStorageEnabled: "{{ .Values.inf.misc.useAzureStorage }}"
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
urls__Otel__ExporterEndpoint: http://{{ .Values.app.svc.zipkin }}:9411/api/v2/spans
4 changes: 4 additions & 0 deletions deploy/k8s/helm/catalog-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ env:
key: all__EventBusConnection
- name: AzureServiceBusEnabled
key: all__UseAzureServiceBus
- name: OTEL_EXPORTER_TOOL_ENDPOINT
key: urls__Otel__ExporterEndpoint
# values define environment variables with a fixed value (no configmap involved) (name is name of var, and value is its value)
values:
- name: ASPNETCORE_ENVIRONMENT
Expand All @@ -48,6 +50,8 @@ env:
value: "80"
- name: GRPC_PORT
value: "81"
- name: OTEL_USE_EXPORTER
value: 'zipkin'
probes:
liveness:
path: /liveness
Expand Down
12 changes: 12 additions & 0 deletions deploy/k8s/helm/deploy-all.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Param(
[parameter(Mandatory=$false)][string]$imageTag="latest",
[parameter(Mandatory=$false)][bool]$useLocalk8s=$false,
[parameter(Mandatory=$false)][bool]$useMesh=$false,
[parameter(Mandatory=$false)][bool]$enableTrace=$false,
[parameter(Mandatory=$false)][string][ValidateSet('Always','IfNotPresent','Never', IgnoreCase=$false)]$imagePullPolicy="Always",
[parameter(Mandatory=$false)][string][ValidateSet('prod','staging','none','custom', IgnoreCase=$false)]$sslSupport = "none",
[parameter(Mandatory=$false)][string]$tlsSecretName = "eshop-tls-custom",
Expand Down Expand Up @@ -119,6 +120,7 @@ if (-not [string]::IsNullOrEmpty($registry)) {
Write-Host "Begin eShopOnContainers installation using Helm" -ForegroundColor Green

$infras = ("sql-data", "nosql-data", "rabbitmq", "keystore-data", "basket-data")
$traceTools = ("zipkin")
$charts = ("eshop-common", "basket-api","catalog-api", "identity-api", "mobileshoppingagg","ordering-api","ordering-backgroundtasks","ordering-signalrhub", "payment-api", "webmvc", "webshoppingagg", "webspa", "webstatus", "webhooks-api", "webhooks-web")
$gateways = ("apigwms", "apigwws")

Expand All @@ -132,6 +134,16 @@ else {
Write-Host "eShopOnContainers infrastructure (bbdd, redis, ...) charts aren't installed (-deployCharts is false)" -ForegroundColor Yellow
}

if ($enableTrace) {
Write-Host "Enabling traces : $traceTools" -ForegroundColor Green
#helm install "$appName-$traceTools" --values app.yaml --values inf.yaml --values $ingressValuesFile --set app.name=$appName --set inf.k8s.dns=$dns --set "ingress.hosts={$dns}" $traceTools
Install-Chart $traceTools "-f app.yaml --values inf.yaml -f $ingressValuesFile -f $ingressMeshAnnotationsFile --set app.name=$appName --set inf.k8s.dns=$dns --set ingress.hosts={$dns} --set image.tag=latest --set image.pullPolicy=$imagePullPolicy --set inf.tls.enabled=$sslEnabled --set inf.mesh.enabled=$false --set inf.k8s.local=$useLocalk8s" $false

}
else {
Write-Host "OpenTelemetry Trace is not enabled. Charts isn't installed (-enableTrace is false)" -ForegroundColor Yellow
}

if ($deployCharts) {
foreach ($chart in $charts) {
if ($chartsToDeploy -eq "*" -or $chartsToDeploy.Contains($chart)) {
Expand Down
4 changes: 3 additions & 1 deletion deploy/k8s/helm/identity-api/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{{- $xamarincallback := include "url-of" (list "xamarincallback" .) -}}
{{- $webhooks_url := include "url-of" (list .Values.app.ingress.entries.webhooks .) -}}
{{- $webhooksweb_url := include "url-of" (list .Values.app.ingress.entries.webhooksweb .) -}}
{{- $zipkin := include "url-of" (list .Values.app.ingress.entries.zipkin .) -}}

apiVersion: v1
kind: ConfigMap
Expand All @@ -32,4 +33,5 @@ data:
xamarin_callback_e: http://{{ $xamarincallback }}
webhooksapi_e: http://{{ $webhooks_url }}
webhooksweb_e: http://{{ $webhooksweb_url }}
enableDevspaces: "{{ .Values.enableDevspaces }}"
enableDevspaces: "{{ .Values.enableDevspaces }}"
urls__Otel__ExporterEndpoint: http://{{ .Values.app.svc.zipkin }}:9411/api/v2/spans
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{- $ingressPath := include "pathBase" . -}}
{{- $serviceName := .Values.app.svc.identity }}
{{- $name := include "identity-api.fullname" . -}}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: {{ $name }}-local
Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s/helm/identity-api/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $ingressPath := include "pathBase" . -}}
{{- $serviceName := .Values.app.svc.identity }}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: {{ template "identity-api.fullname" . }}
Expand Down
5 changes: 4 additions & 1 deletion deploy/k8s/helm/identity-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,17 @@ env:
key: webhooksweb_e
- name: EnableDevspaces
key: enableDevspaces
- name: OTEL_EXPORTER_TOOL_ENDPOINT
key: urls__Otel__ExporterEndpoint
values:
- name: ASPNETCORE_ENVIRONMENT
value: Development
- name: OrchestratorType
value: 'K8S'
- name: IsClusterEnv
value: 'True'

- name: OTEL_USE_EXPORTER
value: 'zipkin'
probes:
liveness:
path: /liveness
Expand Down
2 changes: 2 additions & 0 deletions deploy/k8s/helm/mobileshoppingagg/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{- $name := include "mobileshoppingagg.fullname" . -}}
{{- $identity := include "url-of" (list .Values.app.ingress.entries.identity .) -}}
{{- $protocol := include "protocol" . -}}
{{- $zipkin := include "url-of" (list .Values.app.ingress.entries.zipkin .) -}}

apiVersion: v1
kind: ConfigMap
Expand All @@ -27,3 +28,4 @@ data:
internalurls__grpcCatalog: "http://{{ .Values.app.svc.catalog }}:{{ .Values.service.grpcPort }}"
internalurls__grpcOrdering: "http://{{ .Values.app.svc.ordering }}:{{ .Values.service.grpcPort }}"
urls__IdentityUrlExternal: {{ $protocol }}://{{ $identity }}
urls__Otel__ExporterEndpoint: http://{{ .Values.app.svc.zipkin }}:9411/api/v2/spans
4 changes: 4 additions & 0 deletions deploy/k8s/helm/mobileshoppingagg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ env:
key: internalurls__grpcOrdering
- name: IdentityUrlExternal
key: urls__IdentityUrlExternal
- name: OTEL_EXPORTER_TOOL_ENDPOINT
key: urls__Otel__ExporterEndpoint
# values define environment variables with a fixed value (no configmap involved) (name is name of var, and value is its value)
values:
- name: ASPNETCORE_ENVIRONMENT
Expand All @@ -69,6 +71,8 @@ env:
value: 'K8S'
- name: IsClusterEnv
value: 'True'
- name: OTEL_USE_EXPORTER
value: 'zipkin'
probes:
liveness:
path: /liveness
Expand Down
4 changes: 3 additions & 1 deletion deploy/k8s/helm/ordering-api/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- $name := include "ordering-api.fullname" . -}}
{{- $sqlsrv := include "sql-name" . -}}
{{- $zipkin := include "url-of" (list .Values.app.ingress.entries.zipkin .) -}}

apiVersion: v1
kind: ConfigMap
Expand All @@ -15,4 +16,5 @@ data:
urls__IdentityUrl: http://{{ .Values.app.svc.identity }}
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
urls__Otel__ExporterEndpoint: http://{{ .Values.app.svc.zipkin }}:9411/api/v2/spans
6 changes: 5 additions & 1 deletion deploy/k8s/helm/ordering-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ env:
key: all__UseAzureServiceBus
- name: IdentityUrl
key: urls__IdentityUrl
- name: OTEL_EXPORTER_TOOL_ENDPOINT
key: urls__Otel__ExporterEndpoint
# values define environment variables with a fixed value (no configmap involved) (name is name of var, and value is its value)
values:
- name: ASPNETCORE_ENVIRONMENT
Expand All @@ -52,7 +54,9 @@ env:
- name: PORT
value: "80"
- name: GRPC_PORT
value: "81"
value: "81"
- name: OTEL_USE_EXPORTER
value: 'zipkin'
probes:
liveness:
path: /liveness
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{- $name := include "ordering-backgroundtasks.fullname" . -}}
{{- $sqlsrv := include "sql-name" . -}}
{{- $cfgname := printf "cfg-%s" $name | trunc 63 }}
{{- $zipkin := include "url-of" (list .Values.app.ingress.entries.zipkin .) -}}

apiVersion: v1
kind: ConfigMap
Expand All @@ -18,4 +19,5 @@ data:
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
graceperiodmanager__CheckUpdateTime: "{{ .Values.cfg.checkUpdateTime }}"
graceperiodmanager__GracePeriodTime: "{{ .Values.cfg.gracePeriodTime }}"
graceperiodmanager__GracePeriodTime: "{{ .Values.cfg.gracePeriodTime }}"
urls__Otel__ExporterEndpoint: http://{{ .Values.app.svc.zipkin }}:9411/api/v2/spans
4 changes: 4 additions & 0 deletions deploy/k8s/helm/ordering-backgroundtasks/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ env:
key: graceperiodmanager__CheckUpdateTime
- name: GracePeriodTime
key: graceperiodmanager__GracePeriodTime
- name: OTEL_EXPORTER_TOOL_ENDPOINT
key: urls__Otel__ExporterEndpoint
# values define environment variables with a fixed value (no configmap involved) (name is name of var, and value is its value)
values:
- name: ASPNETCORE_ENVIRONMENT
value: Development
- name: OrchestratorType
value: 'K8S'
- name: OTEL_USE_EXPORTER
value: 'zipkin'
probes:
liveness:
path: /liveness
Expand Down
4 changes: 3 additions & 1 deletion deploy/k8s/helm/ordering-signalrhub/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- $name := include "ordering-signalrhub.fullname" . -}}
{{- $identity := include "url-of" (list .Values.app.ingress.entries.identity .) -}}
{{- $zipkin := include "url-of" (list .Values.app.ingress.entries.zipkin .) -}}

apiVersion: v1
kind: ConfigMap
Expand All @@ -15,4 +16,5 @@ data:
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
signalr__StoreConnectionString: {{ .Values.inf.redis.keystore.constr }}
urls__IdentityUrl: http://identity-api
urls__IdentityUrl: http://identity-api
urls__Otel__ExporterEndpoint: http://{{ .Values.app.svc.zipkin }}:9411/api/v2/spans
4 changes: 4 additions & 0 deletions deploy/k8s/helm/ordering-signalrhub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ env:
key: urls__IdentityUrl
- name: SignalrStoreConnectionString
key: signalr__StoreConnectionString
- name: OTEL_EXPORTER_TOOL_ENDPOINT
key: urls__Otel__ExporterEndpoint
# values define environment variables with a fixed value (no configmap involved) (name is name of var, and value is its value)
values:
- name: ASPNETCORE_ENVIRONMENT
Expand All @@ -54,4 +56,6 @@ env:
value: 'K8S'
- name: IsClusterEnv
values: 'True'
- name: OTEL_USE_EXPORTER
value: 'zipkin'

4 changes: 3 additions & 1 deletion deploy/k8s/helm/payment-api/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- $name := include "payment-api.fullname" . -}}
{{- $zipkin := include "url-of" (list .Values.app.ingress.entries.zipkin .) -}}

apiVersion: v1
kind: ConfigMap
Expand All @@ -12,4 +13,5 @@ metadata:
data:
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
urls__Otel__ExporterEndpoint: http://{{ .Values.app.svc.zipkin }}:9411/api/v2/spans
4 changes: 4 additions & 0 deletions deploy/k8s/helm/payment-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@ env:
key: all__EventBusConnection
- name: AzureServiceBusEnabled
key: all__UseAzureServiceBus
- name: OTEL_EXPORTER_TOOL_ENDPOINT
key: urls__Otel__ExporterEndpoint
# values define environment variables with a fixed value (no configmap involved) (name is name of var, and value is its value)
values:
- name: ASPNETCORE_ENVIRONMENT
value: Development
- name: OrchestratorType
value: 'K8S'
- name: OTEL_USE_EXPORTER
value: 'zipkin'
probes:
liveness:
path: /liveness
Expand Down
4 changes: 3 additions & 1 deletion deploy/k8s/helm/webhooks-api/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{{- $sqlsrv := include "sql-name" . -}}
{{- $identity := include "url-of" (list .Values.app.ingress.entries.identity .) -}}
{{- $protocol := include "protocol" . -}}
{{- $zipkin := include "url-of" (list .Values.app.ingress.entries.zipkin .) -}}

apiVersion: v1
kind: ConfigMap
Expand All @@ -18,4 +19,5 @@ data:
urls__IdentityUrlExternal: {{ $protocol }}://{{ $identity }}
all__EventBusConnection: {{ .Values.inf.eventbus.constr }}
all__InstrumentationKey: "{{ .Values.inf.appinsights.key }}"
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
all__UseAzureServiceBus: "{{ .Values.inf.eventbus.useAzure }}"
urls__Otel__ExporterEndpoint: http://{{ .Values.app.svc.zipkin }}:9411/api/v2/spans
2 changes: 1 addition & 1 deletion deploy/k8s/helm/webhooks-api/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $ingressPath := include "pathBase" . -}}
{{- $serviceName := .Values.app.svc.webhooks }}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: {{ template "webhooks-api.fullname" . }}
Expand Down
4 changes: 4 additions & 0 deletions deploy/k8s/helm/webhooks-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ env:
key: urls__IdentityUrl
- name: IdentityUrlExternal
key: urls__IdentityUrlExternal
- name: OTEL_EXPORTER_TOOL_ENDPOINT
key: urls__Otel__ExporterEndpoint
# values define environment variables with a fixed value (no configmap involved) (name is name of var, and value is its value)
values:
- name: ASPNETCORE_ENVIRONMENT
value: Development
- name: OrchestratorType
value: 'K8S'
- name: OTEL_USE_EXPORTER
value: 'zipkin'

Loading