From 5885370c2564118adff92f16566e757e51feb373 Mon Sep 17 00:00:00 2001 From: Andrew Cholakian Date: Wed, 18 Sep 2024 15:38:40 -0500 Subject: [PATCH 1/2] Fix kafka env vars --- kubernetes/opentelemetry-demo.yaml | 1380 +++++++++++++--------------- 1 file changed, 627 insertions(+), 753 deletions(-) diff --git a/kubernetes/opentelemetry-demo.yaml b/kubernetes/opentelemetry-demo.yaml index 8a5c2b3485..c9d3554114 100644 --- a/kubernetes/opentelemetry-demo.yaml +++ b/kubernetes/opentelemetry-demo.yaml @@ -71,8 +71,7 @@ metadata: app.kubernetes.io/part-of: prometheus name: opentelemetry-demo-prometheus-server namespace: otel-demo - annotations: - {} + annotations: {} --- # Source: opentelemetry-demo/templates/serviceaccount.yaml apiVersion: v1 @@ -80,7 +79,6 @@ kind: ServiceAccount metadata: name: opentelemetry-demo labels: - opentelemetry.io/name: opentelemetry-demo app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/name: opentelemetry-demo @@ -99,7 +97,6 @@ metadata: app.kubernetes.io/version: "11.1.0" type: Opaque data: - admin-user: "YWRtaW4=" admin-password: "YWRtaW4=" ldap-toml: "" @@ -115,7 +112,6 @@ metadata: app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "11.1.0" data: - plugins: grafana-opensearch-datasource grafana.ini: | [analytics] @@ -200,14 +196,14 @@ metadata: data: opensearch.yml: | cluster.name: opensearch-cluster - + # Bind to all interfaces because we don't know what IP address Docker will assign to us. network.host: 0.0.0.0 - + # Setting network.host to a non-loopback address enables the annoying bootstrap checks. "Single-node" mode disables them again. # Implicitly done if ".singleNode" is set to "true". # discovery.type: single-node - + # Start OpenSearch Security Demo Configuration # WARNING: revise all the lines below before you go into production plugins: @@ -260,7 +256,7 @@ metadata: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "0.105.0" - + data: relay: | connectors: @@ -463,14 +459,12 @@ metadata: name: opentelemetry-demo-flagd-config namespace: otel-demo labels: - opentelemetry.io/name: opentelemetry-demo app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/name: opentelemetry-demo app.kubernetes.io/version: "1.11.1" app.kubernetes.io/part-of: opentelemetry-demo data: - demo.flagd.json: | { "$schema": "https://flagd.dev/schema/v0/flags.json", @@ -585,14 +579,12 @@ metadata: name: opentelemetry-demo-grafana-dashboards namespace: otel-demo labels: - opentelemetry.io/name: opentelemetry-demo app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/name: opentelemetry-demo app.kubernetes.io/version: "1.11.1" app.kubernetes.io/part-of: opentelemetry-demo data: - demo-dashboard.json: |- { "annotations": { @@ -8246,7 +8238,7 @@ metadata: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "0.105.0" - + rules: - apiGroups: [""] resources: ["pods", "namespaces"] @@ -8335,15 +8327,15 @@ metadata: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "0.105.0" - + roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: opentelemetry-demo-otelcol subjects: -- kind: ServiceAccount - name: opentelemetry-demo-otelcol - namespace: otel-demo + - kind: ServiceAccount + name: opentelemetry-demo-otelcol + namespace: otel-demo --- # Source: opentelemetry-demo/charts/prometheus/templates/clusterrolebinding.yaml apiVersion: rbac.authorization.k8s.io/v1 @@ -8392,9 +8384,9 @@ roleRef: kind: Role name: opentelemetry-demo-grafana subjects: -- kind: ServiceAccount - name: opentelemetry-demo-grafana - namespace: otel-demo + - kind: ServiceAccount + name: opentelemetry-demo-grafana + namespace: otel-demo --- # Source: opentelemetry-demo/charts/grafana/templates/service.yaml apiVersion: v1 @@ -8525,20 +8517,19 @@ metadata: app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "2.15.0" app.kubernetes.io/component: otel-demo-opensearch - annotations: - {} + annotations: {} spec: type: ClusterIP selector: app.kubernetes.io/name: opensearch app.kubernetes.io/instance: opentelemetry-demo ports: - - name: http - protocol: TCP - port: 9200 - - name: transport - protocol: TCP - port: 9300 + - name: http + protocol: TCP + port: 9200 + - name: transport + protocol: TCP + port: 9300 --- # Source: opentelemetry-demo/charts/opensearch/templates/service.yaml kind: Service @@ -8560,12 +8551,12 @@ spec: app.kubernetes.io/name: opensearch app.kubernetes.io/instance: opentelemetry-demo ports: - - name: http - port: 9200 - - name: transport - port: 9300 - - name: metrics - port: 9600 + - name: http + port: 9200 + - name: transport + port: 9300 + - name: metrics + port: 9600 --- # Source: opentelemetry-demo/charts/opentelemetry-collector/templates/service.yaml apiVersion: v1 @@ -8577,12 +8568,11 @@ metadata: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "0.105.0" - + component: standalone-collector spec: type: ClusterIP ports: - - name: jaeger-compact port: 6831 targetPort: 6831 @@ -8653,7 +8643,6 @@ kind: Service metadata: name: opentelemetry-demo-adservice labels: - opentelemetry.io/name: opentelemetry-demo-adservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: adservice @@ -8667,7 +8656,6 @@ spec: name: tcp-service targetPort: 8080 selector: - opentelemetry.io/name: opentelemetry-demo-adservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8676,7 +8664,6 @@ kind: Service metadata: name: opentelemetry-demo-cartservice labels: - opentelemetry.io/name: opentelemetry-demo-cartservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: cartservice @@ -8690,7 +8677,6 @@ spec: name: tcp-service targetPort: 8080 selector: - opentelemetry.io/name: opentelemetry-demo-cartservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8699,7 +8685,6 @@ kind: Service metadata: name: opentelemetry-demo-checkoutservice labels: - opentelemetry.io/name: opentelemetry-demo-checkoutservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: checkoutservice @@ -8713,7 +8698,6 @@ spec: name: tcp-service targetPort: 8080 selector: - opentelemetry.io/name: opentelemetry-demo-checkoutservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8722,7 +8706,6 @@ kind: Service metadata: name: opentelemetry-demo-currencyservice labels: - opentelemetry.io/name: opentelemetry-demo-currencyservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: currencyservice @@ -8736,7 +8719,6 @@ spec: name: tcp-service targetPort: 8080 selector: - opentelemetry.io/name: opentelemetry-demo-currencyservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8745,7 +8727,6 @@ kind: Service metadata: name: opentelemetry-demo-emailservice labels: - opentelemetry.io/name: opentelemetry-demo-emailservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: emailservice @@ -8759,7 +8740,6 @@ spec: name: tcp-service targetPort: 8080 selector: - opentelemetry.io/name: opentelemetry-demo-emailservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8768,7 +8748,6 @@ kind: Service metadata: name: opentelemetry-demo-flagd labels: - opentelemetry.io/name: opentelemetry-demo-flagd app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: flagd @@ -8782,7 +8761,6 @@ spec: name: tcp-service targetPort: 8013 selector: - opentelemetry.io/name: opentelemetry-demo-flagd --- # Source: opentelemetry-demo/templates/component.yaml @@ -8791,7 +8769,6 @@ kind: Service metadata: name: opentelemetry-demo-frontend labels: - opentelemetry.io/name: opentelemetry-demo-frontend app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frontend @@ -8805,7 +8782,6 @@ spec: name: tcp-service targetPort: 8080 selector: - opentelemetry.io/name: opentelemetry-demo-frontend --- # Source: opentelemetry-demo/templates/component.yaml @@ -8814,7 +8790,6 @@ kind: Service metadata: name: opentelemetry-demo-frontendproxy labels: - opentelemetry.io/name: opentelemetry-demo-frontendproxy app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frontendproxy @@ -8828,7 +8803,6 @@ spec: name: tcp-service targetPort: 8080 selector: - opentelemetry.io/name: opentelemetry-demo-frontendproxy --- # Source: opentelemetry-demo/templates/component.yaml @@ -8837,7 +8811,6 @@ kind: Service metadata: name: opentelemetry-demo-imageprovider labels: - opentelemetry.io/name: opentelemetry-demo-imageprovider app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: imageprovider @@ -8851,7 +8824,6 @@ spec: name: tcp-service targetPort: 8081 selector: - opentelemetry.io/name: opentelemetry-demo-imageprovider --- # Source: opentelemetry-demo/templates/component.yaml @@ -8860,7 +8832,6 @@ kind: Service metadata: name: opentelemetry-demo-kafka labels: - opentelemetry.io/name: opentelemetry-demo-kafka app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: kafka @@ -8877,7 +8848,6 @@ spec: name: controller targetPort: 9093 selector: - opentelemetry.io/name: opentelemetry-demo-kafka --- # Source: opentelemetry-demo/templates/component.yaml @@ -8886,7 +8856,6 @@ kind: Service metadata: name: opentelemetry-demo-loadgenerator labels: - opentelemetry.io/name: opentelemetry-demo-loadgenerator app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: loadgenerator @@ -8900,7 +8869,6 @@ spec: name: tcp-service targetPort: 8089 selector: - opentelemetry.io/name: opentelemetry-demo-loadgenerator --- # Source: opentelemetry-demo/templates/component.yaml @@ -8909,7 +8877,6 @@ kind: Service metadata: name: opentelemetry-demo-paymentservice labels: - opentelemetry.io/name: opentelemetry-demo-paymentservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: paymentservice @@ -8923,7 +8890,6 @@ spec: name: tcp-service targetPort: 8080 selector: - opentelemetry.io/name: opentelemetry-demo-paymentservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8932,7 +8898,6 @@ kind: Service metadata: name: opentelemetry-demo-productcatalogservice labels: - opentelemetry.io/name: opentelemetry-demo-productcatalogservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: productcatalogservice @@ -8946,7 +8911,6 @@ spec: name: tcp-service targetPort: 8080 selector: - opentelemetry.io/name: opentelemetry-demo-productcatalogservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8955,7 +8919,6 @@ kind: Service metadata: name: opentelemetry-demo-quoteservice labels: - opentelemetry.io/name: opentelemetry-demo-quoteservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: quoteservice @@ -8969,7 +8932,6 @@ spec: name: tcp-service targetPort: 8080 selector: - opentelemetry.io/name: opentelemetry-demo-quoteservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8978,7 +8940,6 @@ kind: Service metadata: name: opentelemetry-demo-recommendationservice labels: - opentelemetry.io/name: opentelemetry-demo-recommendationservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: recommendationservice @@ -8992,7 +8953,6 @@ spec: name: tcp-service targetPort: 8080 selector: - opentelemetry.io/name: opentelemetry-demo-recommendationservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -9001,7 +8961,6 @@ kind: Service metadata: name: opentelemetry-demo-shippingservice labels: - opentelemetry.io/name: opentelemetry-demo-shippingservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: shippingservice @@ -9015,7 +8974,6 @@ spec: name: tcp-service targetPort: 8080 selector: - opentelemetry.io/name: opentelemetry-demo-shippingservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -9024,7 +8982,6 @@ kind: Service metadata: name: opentelemetry-demo-valkey labels: - opentelemetry.io/name: opentelemetry-demo-valkey app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: valkey @@ -9038,7 +8995,6 @@ spec: name: valkey targetPort: 6379 selector: - opentelemetry.io/name: opentelemetry-demo-valkey --- # Source: opentelemetry-demo/charts/grafana/templates/deployment.yaml @@ -9071,7 +9027,6 @@ spec: checksum/secret: bed677784356b2af7fb0d87455db21f077853059b594101a4f6532bfbd962a7f kubectl.kubernetes.io/default-container: grafana spec: - serviceAccountName: opentelemetry-demo-grafana automountServiceAccountToken: true securityContext: @@ -9088,7 +9043,7 @@ spec: allowPrivilegeEscalation: false capabilities: drop: - - ALL + - ALL seccompProfile: type: RuntimeDefault volumeMounts: @@ -9198,22 +9153,20 @@ spec: prometheus.io/port: "14269" prometheus.io/scrape: "true" spec: - containers: - env: - name: METRICS_STORAGE_TYPE value: prometheus - name: SPAN_STORAGE_TYPE value: memory - + - name: COLLECTOR_ZIPKIN_HOST_PORT value: :9411 - name: JAEGER_DISABLED value: "false" - name: COLLECTOR_OTLP_ENABLED value: "true" - securityContext: - {} + securityContext: {} image: jaegertracing/all-in-one:1.53.0 imagePullPolicy: IfNotPresent name: jaeger @@ -9283,7 +9236,7 @@ metadata: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "0.105.0" - + spec: replicas: 1 revisionHistoryLimit: 10 @@ -9305,22 +9258,18 @@ spec: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo component: standalone-collector - + spec: - serviceAccountName: opentelemetry-demo-otelcol - securityContext: - {} + securityContext: {} containers: - name: opentelemetry-collector args: - --config=/conf/relay.yaml - securityContext: - {} + securityContext: {} image: "otel/opentelemetry-collector-contrib:0.105.0" imagePullPolicy: IfNotPresent ports: - - name: jaeger-compact containerPort: 6831 protocol: UDP @@ -9411,7 +9360,6 @@ spec: enableServiceLinks: true serviceAccountName: opentelemetry-demo-prometheus-server containers: - - name: prometheus-server image: "quay.io/prometheus/prometheus:v2.53.1" imagePullPolicy: "IfNotPresent" @@ -9466,8 +9414,7 @@ spec: configMap: name: opentelemetry-demo-prometheus-server - name: storage-volume - emptyDir: - {} + emptyDir: {} --- # Source: opentelemetry-demo/templates/component.yaml apiVersion: apps/v1 @@ -9475,7 +9422,6 @@ kind: Deployment metadata: name: opentelemetry-demo-accountingservice labels: - opentelemetry.io/name: opentelemetry-demo-accountingservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: accountingservice @@ -9486,12 +9432,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-accountingservice template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-accountingservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: accountingservice @@ -9500,24 +9444,24 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: accountingservice - image: 'ghcr.io/open-telemetry/demo:1.11.1-accountingservice' + image: "ghcr.io/open-telemetry/demo:1.11.1-accountingservice" imagePullPolicy: IfNotPresent env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: KAFKA_SERVICE_ADDR - value: 'opentelemetry-demo-kafka:9092' - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: KAFKA_SERVICE_ADDR + value: "opentelemetry-demo-kafka:9092" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 120Mi @@ -9525,10 +9469,10 @@ spec: volumes: initContainers: - command: - - sh - - -c - - until nc -z -v -w30 opentelemetry-demo-kafka 9092; do echo waiting - for kafka; sleep 2; done; + - sh + - -c + - until nc -z -v -w30 opentelemetry-demo-kafka 9092; do echo waiting + for kafka; sleep 2; done; image: busybox:latest name: wait-for-kafka --- @@ -9538,7 +9482,6 @@ kind: Deployment metadata: name: opentelemetry-demo-adservice labels: - opentelemetry.io/name: opentelemetry-demo-adservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: adservice @@ -9549,12 +9492,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-adservice template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-adservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: adservice @@ -9563,34 +9504,33 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: adservice - image: 'ghcr.io/open-telemetry/demo:1.11.1-adservice' + image: "ghcr.io/open-telemetry/demo:1.11.1-adservice" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8080 - name: service + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: AD_SERVICE_PORT - value: "8080" - - name: FLAGD_HOST - value: 'opentelemetry-demo-flagd' - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4318 - - name: OTEL_LOGS_EXPORTER - value: otlp - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: AD_SERVICE_PORT + value: "8080" + - name: FLAGD_HOST + value: "opentelemetry-demo-flagd" + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: OTEL_LOGS_EXPORTER + value: otlp + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 300Mi @@ -9603,7 +9543,6 @@ kind: Deployment metadata: name: opentelemetry-demo-cartservice labels: - opentelemetry.io/name: opentelemetry-demo-cartservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: cartservice @@ -9614,12 +9553,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-cartservice template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-cartservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: cartservice @@ -9628,36 +9565,35 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: cartservice - image: 'ghcr.io/open-telemetry/demo:1.11.1-cartservice' + image: "ghcr.io/open-telemetry/demo:1.11.1-cartservice" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8080 - name: service + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: CART_SERVICE_PORT - value: "8080" - - name: ASPNETCORE_URLS - value: http://*:$(CART_SERVICE_PORT) - - name: VALKEY_ADDR - value: 'opentelemetry-demo-valkey:6379' - - name: FLAGD_HOST - value: 'opentelemetry-demo-flagd' - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: CART_SERVICE_PORT + value: "8080" + - name: ASPNETCORE_URLS + value: http://*:$(CART_SERVICE_PORT) + - name: VALKEY_ADDR + value: "opentelemetry-demo-valkey:6379" + - name: FLAGD_HOST + value: "opentelemetry-demo-flagd" + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 160Mi @@ -9665,10 +9601,10 @@ spec: volumes: initContainers: - command: - - sh - - -c - - until nc -z -v -w30 opentelemetry-demo-valkey 6379; do echo waiting - for valkey; sleep 2; done; + - sh + - -c + - until nc -z -v -w30 opentelemetry-demo-valkey 6379; do echo waiting + for valkey; sleep 2; done; image: busybox:latest name: wait-for-valkey --- @@ -9678,7 +9614,6 @@ kind: Deployment metadata: name: opentelemetry-demo-checkoutservice labels: - opentelemetry.io/name: opentelemetry-demo-checkoutservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: checkoutservice @@ -9689,12 +9624,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-checkoutservice template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-checkoutservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: checkoutservice @@ -9703,46 +9636,45 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: checkoutservice - image: 'ghcr.io/open-telemetry/demo:1.11.1-checkoutservice' + image: "ghcr.io/open-telemetry/demo:1.11.1-checkoutservice" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8080 - name: service + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: CHECKOUT_SERVICE_PORT - value: "8080" - - name: CART_SERVICE_ADDR - value: 'opentelemetry-demo-cartservice:8080' - - name: CURRENCY_SERVICE_ADDR - value: 'opentelemetry-demo-currencyservice:8080' - - name: EMAIL_SERVICE_ADDR - value: http://opentelemetry-demo-emailservice:8080 - - name: PAYMENT_SERVICE_ADDR - value: 'opentelemetry-demo-paymentservice:8080' - - name: PRODUCT_CATALOG_SERVICE_ADDR - value: 'opentelemetry-demo-productcatalogservice:8080' - - name: SHIPPING_SERVICE_ADDR - value: 'opentelemetry-demo-shippingservice:8080' - - name: KAFKA_SERVICE_ADDR - value: 'opentelemetry-demo-kafka:9092' - - name: FLAGD_HOST - value: 'opentelemetry-demo-flagd' - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: CHECKOUT_SERVICE_PORT + value: "8080" + - name: CART_SERVICE_ADDR + value: "opentelemetry-demo-cartservice:8080" + - name: CURRENCY_SERVICE_ADDR + value: "opentelemetry-demo-currencyservice:8080" + - name: EMAIL_SERVICE_ADDR + value: http://opentelemetry-demo-emailservice:8080 + - name: PAYMENT_SERVICE_ADDR + value: "opentelemetry-demo-paymentservice:8080" + - name: PRODUCT_CATALOG_SERVICE_ADDR + value: "opentelemetry-demo-productcatalogservice:8080" + - name: SHIPPING_SERVICE_ADDR + value: "opentelemetry-demo-shippingservice:8080" + - name: KAFKA_SERVICE_ADDR + value: "opentelemetry-demo-kafka:9092" + - name: FLAGD_HOST + value: "opentelemetry-demo-flagd" + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 20Mi @@ -9750,10 +9682,10 @@ spec: volumes: initContainers: - command: - - sh - - -c - - until nc -z -v -w30 opentelemetry-demo-kafka 9092; do echo waiting - for kafka; sleep 2; done; + - sh + - -c + - until nc -z -v -w30 opentelemetry-demo-kafka 9092; do echo waiting + for kafka; sleep 2; done; image: busybox:latest name: wait-for-kafka --- @@ -9763,7 +9695,6 @@ kind: Deployment metadata: name: opentelemetry-demo-currencyservice labels: - opentelemetry.io/name: opentelemetry-demo-currencyservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: currencyservice @@ -9774,12 +9705,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-currencyservice template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-currencyservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: currencyservice @@ -9788,30 +9717,29 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: currencyservice - image: 'ghcr.io/open-telemetry/demo:1.11.1-currencyservice' + image: "ghcr.io/open-telemetry/demo:1.11.1-currencyservice" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8080 - name: service + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: CURRENCY_SERVICE_PORT - value: "8080" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: VERSION - value: '1.11.1' - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: CURRENCY_SERVICE_PORT + value: "8080" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: VERSION + value: "1.11.1" + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 20Mi @@ -9824,7 +9752,6 @@ kind: Deployment metadata: name: opentelemetry-demo-emailservice labels: - opentelemetry.io/name: opentelemetry-demo-emailservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: emailservice @@ -9835,12 +9762,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-emailservice template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-emailservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: emailservice @@ -9849,30 +9774,29 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: emailservice - image: 'ghcr.io/open-telemetry/demo:1.11.1-emailservice' + image: "ghcr.io/open-telemetry/demo:1.11.1-emailservice" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8080 - name: service + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: EMAIL_SERVICE_PORT - value: "8080" - - name: APP_ENV - value: production - - name: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4318/v1/traces - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: EMAIL_SERVICE_PORT + value: "8080" + - name: APP_ENV + value: production + - name: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318/v1/traces + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 100Mi @@ -9885,7 +9809,6 @@ kind: Deployment metadata: name: opentelemetry-demo-flagd labels: - opentelemetry.io/name: opentelemetry-demo-flagd app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: flagd @@ -9896,12 +9819,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-flagd template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-flagd app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: flagd @@ -9910,33 +9831,32 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: flagd - image: 'ghcr.io/open-feature/flagd:v0.11.2' + image: "ghcr.io/open-feature/flagd:v0.11.2" imagePullPolicy: IfNotPresent command: - - /flagd-build - - start - - --uri - - file:./etc/flagd/demo.flagd.json + - /flagd-build + - start + - --uri + - file:./etc/flagd/demo.flagd.json ports: - - - containerPort: 8013 - name: service + - containerPort: 8013 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: FLAGD_METRICS_EXPORTER - value: otel - - name: FLAGD_OTEL_COLLECTOR_URI - value: $(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: FLAGD_METRICS_EXPORTER + value: otel + - name: FLAGD_OTEL_COLLECTOR_URI + value: $(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 50Mi @@ -9954,7 +9874,6 @@ kind: Deployment metadata: name: opentelemetry-demo-frauddetectionservice labels: - opentelemetry.io/name: opentelemetry-demo-frauddetectionservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frauddetectionservice @@ -9965,12 +9884,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-frauddetectionservice template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-frauddetectionservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frauddetectionservice @@ -9979,28 +9896,28 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: frauddetectionservice - image: 'ghcr.io/open-telemetry/demo:1.11.1-frauddetectionservice' + image: "ghcr.io/open-telemetry/demo:1.11.1-frauddetectionservice" imagePullPolicy: IfNotPresent env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: KAFKA_SERVICE_ADDR - value: 'opentelemetry-demo-kafka:9092' - - name: FLAGD_HOST - value: 'opentelemetry-demo-flagd' - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4318 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: KAFKA_SERVICE_ADDR + value: "opentelemetry-demo-kafka:9092" + - name: FLAGD_HOST + value: "opentelemetry-demo-flagd" + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 300Mi @@ -10008,10 +9925,10 @@ spec: volumes: initContainers: - command: - - sh - - -c - - until nc -z -v -w30 opentelemetry-demo-kafka 9092; do echo waiting - for kafka; sleep 2; done; + - sh + - -c + - until nc -z -v -w30 opentelemetry-demo-kafka 9092; do echo waiting + for kafka; sleep 2; done; image: busybox:latest name: wait-for-kafka --- @@ -10021,7 +9938,6 @@ kind: Deployment metadata: name: opentelemetry-demo-frontend labels: - opentelemetry.io/name: opentelemetry-demo-frontend app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frontend @@ -10032,12 +9948,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-frontend template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-frontend app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frontend @@ -10046,54 +9960,53 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: frontend - image: 'ghcr.io/open-telemetry/demo:1.11.1-frontend' + image: "ghcr.io/open-telemetry/demo:1.11.1-frontend" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8080 - name: service + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: FRONTEND_PORT - value: "8080" - - name: FRONTEND_ADDR - value: :8080 - - name: AD_SERVICE_ADDR - value: 'opentelemetry-demo-adservice:8080' - - name: CART_SERVICE_ADDR - value: 'opentelemetry-demo-cartservice:8080' - - name: CHECKOUT_SERVICE_ADDR - value: 'opentelemetry-demo-checkoutservice:8080' - - name: CURRENCY_SERVICE_ADDR - value: 'opentelemetry-demo-currencyservice:8080' - - name: PRODUCT_CATALOG_SERVICE_ADDR - value: 'opentelemetry-demo-productcatalogservice:8080' - - name: RECOMMENDATION_SERVICE_ADDR - value: 'opentelemetry-demo-recommendationservice:8080' - - name: SHIPPING_SERVICE_ADDR - value: 'opentelemetry-demo-shippingservice:8080' - - name: FLAGD_HOST - value: 'opentelemetry-demo-flagd' - - name: FLAGD_PORT - value: "8013" - - name: OTEL_COLLECTOR_HOST - value: $(OTEL_COLLECTOR_NAME) - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: WEB_OTEL_SERVICE_NAME - value: frontend-web - - name: PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT - value: http://localhost:8080/otlp-http/v1/traces - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: FRONTEND_PORT + value: "8080" + - name: FRONTEND_ADDR + value: :8080 + - name: AD_SERVICE_ADDR + value: "opentelemetry-demo-adservice:8080" + - name: CART_SERVICE_ADDR + value: "opentelemetry-demo-cartservice:8080" + - name: CHECKOUT_SERVICE_ADDR + value: "opentelemetry-demo-checkoutservice:8080" + - name: CURRENCY_SERVICE_ADDR + value: "opentelemetry-demo-currencyservice:8080" + - name: PRODUCT_CATALOG_SERVICE_ADDR + value: "opentelemetry-demo-productcatalogservice:8080" + - name: RECOMMENDATION_SERVICE_ADDR + value: "opentelemetry-demo-recommendationservice:8080" + - name: SHIPPING_SERVICE_ADDR + value: "opentelemetry-demo-shippingservice:8080" + - name: FLAGD_HOST + value: "opentelemetry-demo-flagd" + - name: FLAGD_PORT + value: "8013" + - name: OTEL_COLLECTOR_HOST + value: $(OTEL_COLLECTOR_NAME) + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: WEB_OTEL_SERVICE_NAME + value: frontend-web + - name: PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + value: http://localhost:8080/otlp-http/v1/traces + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 250Mi @@ -10110,7 +10023,6 @@ kind: Deployment metadata: name: opentelemetry-demo-frontendproxy labels: - opentelemetry.io/name: opentelemetry-demo-frontendproxy app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frontendproxy @@ -10121,12 +10033,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-frontendproxy template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-frontendproxy app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frontendproxy @@ -10135,56 +10045,55 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: frontendproxy - image: 'ghcr.io/open-telemetry/demo:1.11.1-frontendproxy' + image: "ghcr.io/open-telemetry/demo:1.11.1-frontendproxy" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8080 - name: service + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: ENVOY_PORT - value: "8080" - - name: FLAGD_HOST - value: 'opentelemetry-demo-flagd' - - name: FLAGD_PORT - value: "8013" - - name: FRONTEND_HOST - value: 'opentelemetry-demo-frontend' - - name: FRONTEND_PORT - value: "8080" - - name: GRAFANA_SERVICE_HOST - value: 'opentelemetry-demo-grafana' - - name: GRAFANA_SERVICE_PORT - value: "80" - - name: IMAGE_PROVIDER_HOST - value: 'opentelemetry-demo-imageprovider' - - name: IMAGE_PROVIDER_PORT - value: "8081" - - name: JAEGER_SERVICE_HOST - value: 'opentelemetry-demo-jaeger-query' - - name: JAEGER_SERVICE_PORT - value: "16686" - - name: LOCUST_WEB_HOST - value: 'opentelemetry-demo-loadgenerator' - - name: LOCUST_WEB_PORT - value: "8089" - - name: OTEL_COLLECTOR_HOST - value: $(OTEL_COLLECTOR_NAME) - - name: OTEL_COLLECTOR_PORT_GRPC - value: "4317" - - name: OTEL_COLLECTOR_PORT_HTTP - value: "4318" - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: ENVOY_PORT + value: "8080" + - name: FLAGD_HOST + value: "opentelemetry-demo-flagd" + - name: FLAGD_PORT + value: "8013" + - name: FRONTEND_HOST + value: "opentelemetry-demo-frontend" + - name: FRONTEND_PORT + value: "8080" + - name: GRAFANA_SERVICE_HOST + value: "opentelemetry-demo-grafana" + - name: GRAFANA_SERVICE_PORT + value: "80" + - name: IMAGE_PROVIDER_HOST + value: "opentelemetry-demo-imageprovider" + - name: IMAGE_PROVIDER_PORT + value: "8081" + - name: JAEGER_SERVICE_HOST + value: "opentelemetry-demo-jaeger-query" + - name: JAEGER_SERVICE_PORT + value: "16686" + - name: LOCUST_WEB_HOST + value: "opentelemetry-demo-loadgenerator" + - name: LOCUST_WEB_PORT + value: "8089" + - name: OTEL_COLLECTOR_HOST + value: $(OTEL_COLLECTOR_NAME) + - name: OTEL_COLLECTOR_PORT_GRPC + value: "4317" + - name: OTEL_COLLECTOR_PORT_HTTP + value: "4318" + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 50Mi @@ -10201,7 +10110,6 @@ kind: Deployment metadata: name: opentelemetry-demo-imageprovider labels: - opentelemetry.io/name: opentelemetry-demo-imageprovider app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: imageprovider @@ -10212,12 +10120,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-imageprovider template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-imageprovider app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: imageprovider @@ -10226,30 +10132,29 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: imageprovider - image: 'ghcr.io/open-telemetry/demo:1.11.1-imageprovider' + image: "ghcr.io/open-telemetry/demo:1.11.1-imageprovider" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8081 - name: service + - containerPort: 8081 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: IMAGE_PROVIDER_PORT - value: "8081" - - name: OTEL_COLLECTOR_PORT_GRPC - value: "4317" - - name: OTEL_COLLECTOR_HOST - value: $(OTEL_COLLECTOR_NAME) - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: IMAGE_PROVIDER_PORT + value: "8081" + - name: OTEL_COLLECTOR_PORT_GRPC + value: "4317" + - name: OTEL_COLLECTOR_HOST + value: $(OTEL_COLLECTOR_NAME) + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 50Mi @@ -10262,7 +10167,6 @@ kind: Deployment metadata: name: opentelemetry-demo-kafka labels: - opentelemetry.io/name: opentelemetry-demo-kafka app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: kafka @@ -10273,12 +10177,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-kafka template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-kafka app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: kafka @@ -10287,32 +10189,33 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: kafka - image: 'ghcr.io/open-telemetry/demo:1.11.1-kafka' + image: "ghcr.io/open-telemetry/demo:1.11.1-kafka" imagePullPolicy: IfNotPresent ports: - - - containerPort: 9092 - name: plaintext - - containerPort: 9093 - name: controller + - containerPort: 9092 + name: plaintext + - containerPort: 9093 + name: controller env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: KAFKA_ADVERTISED_LISTENERS - value: PLAINTEXT://opentelemetry-demo-kafka:9092 - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4318 - - name: KAFKA_HEAP_OPTS - value: -Xmx400M -Xms400M - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: KAFKA_ADVERTISED_LISTENERS + value: PLAINTEXT://opentelemetry-demo-kafka:9092 + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: KAFKA_HEAP_OPTS + value: -Xmx400M -Xms400M + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_INFERRED_SPANS_ENABLED + value: false resources: limits: memory: 600Mi @@ -10329,7 +10232,6 @@ kind: Deployment metadata: name: opentelemetry-demo-loadgenerator labels: - opentelemetry.io/name: opentelemetry-demo-loadgenerator app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: loadgenerator @@ -10340,12 +10242,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-loadgenerator template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-loadgenerator app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: loadgenerator @@ -10354,46 +10254,45 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: loadgenerator - image: 'ghcr.io/open-telemetry/demo:1.11.1-loadgenerator' + image: "ghcr.io/open-telemetry/demo:1.11.1-loadgenerator" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8089 - name: service + - containerPort: 8089 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: LOCUST_WEB_PORT - value: "8089" - - name: LOCUST_USERS - value: "10" - - name: LOCUST_SPAWN_RATE - value: "1" - - name: LOCUST_HOST - value: http://opentelemetry-demo-frontendproxy:8080 - - name: LOCUST_HEADLESS - value: "false" - - name: LOCUST_AUTOSTART - value: "true" - - name: LOCUST_BROWSER_TRAFFIC_ENABLED - value: "true" - - name: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION - value: python - - name: FLAGD_HOST - value: 'opentelemetry-demo-flagd' - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: LOCUST_WEB_PORT + value: "8089" + - name: LOCUST_USERS + value: "10" + - name: LOCUST_SPAWN_RATE + value: "1" + - name: LOCUST_HOST + value: http://opentelemetry-demo-frontendproxy:8080 + - name: LOCUST_HEADLESS + value: "false" + - name: LOCUST_AUTOSTART + value: "true" + - name: LOCUST_BROWSER_TRAFFIC_ENABLED + value: "true" + - name: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION + value: python + - name: FLAGD_HOST + value: "opentelemetry-demo-flagd" + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 1Gi @@ -10406,7 +10305,6 @@ kind: Deployment metadata: name: opentelemetry-demo-paymentservice labels: - opentelemetry.io/name: opentelemetry-demo-paymentservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: paymentservice @@ -10417,12 +10315,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-paymentservice template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-paymentservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: paymentservice @@ -10431,32 +10327,31 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: paymentservice - image: 'ghcr.io/open-telemetry/demo:1.11.1-paymentservice' + image: "ghcr.io/open-telemetry/demo:1.11.1-paymentservice" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8080 - name: service + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: PAYMENT_SERVICE_PORT - value: "8080" - - name: FLAGD_HOST - value: 'opentelemetry-demo-flagd' - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: PAYMENT_SERVICE_PORT + value: "8080" + - name: FLAGD_HOST + value: "opentelemetry-demo-flagd" + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 120Mi @@ -10473,7 +10368,6 @@ kind: Deployment metadata: name: opentelemetry-demo-productcatalogservice labels: - opentelemetry.io/name: opentelemetry-demo-productcatalogservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: productcatalogservice @@ -10484,12 +10378,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-productcatalogservice template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-productcatalogservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: productcatalogservice @@ -10498,32 +10390,31 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: productcatalogservice - image: 'ghcr.io/open-telemetry/demo:1.11.1-productcatalogservice' + image: "ghcr.io/open-telemetry/demo:1.11.1-productcatalogservice" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8080 - name: service + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: PRODUCT_CATALOG_SERVICE_PORT - value: "8080" - - name: FLAGD_HOST - value: 'opentelemetry-demo-flagd' - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: PRODUCT_CATALOG_SERVICE_PORT + value: "8080" + - name: FLAGD_HOST + value: "opentelemetry-demo-flagd" + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 20Mi @@ -10536,7 +10427,6 @@ kind: Deployment metadata: name: opentelemetry-demo-quoteservice labels: - opentelemetry.io/name: opentelemetry-demo-quoteservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: quoteservice @@ -10547,12 +10437,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-quoteservice template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-quoteservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: quoteservice @@ -10561,30 +10449,29 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: quoteservice - image: 'ghcr.io/open-telemetry/demo:1.11.1-quoteservice' + image: "ghcr.io/open-telemetry/demo:1.11.1-quoteservice" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8080 - name: service + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: QUOTE_SERVICE_PORT - value: "8080" - - name: OTEL_PHP_AUTOLOAD_ENABLED - value: "true" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4318 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: QUOTE_SERVICE_PORT + value: "8080" + - name: OTEL_PHP_AUTOLOAD_ENABLED + value: "true" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 40Mi @@ -10601,7 +10488,6 @@ kind: Deployment metadata: name: opentelemetry-demo-recommendationservice labels: - opentelemetry.io/name: opentelemetry-demo-recommendationservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: recommendationservice @@ -10612,12 +10498,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-recommendationservice template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-recommendationservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: recommendationservice @@ -10626,38 +10510,37 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: recommendationservice - image: 'ghcr.io/open-telemetry/demo:1.11.1-recommendationservice' + image: "ghcr.io/open-telemetry/demo:1.11.1-recommendationservice" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8080 - name: service + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: RECOMMENDATION_SERVICE_PORT - value: "8080" - - name: PRODUCT_CATALOG_SERVICE_ADDR - value: 'opentelemetry-demo-productcatalogservice:8080' - - name: OTEL_PYTHON_LOG_CORRELATION - value: "true" - - name: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION - value: python - - name: FLAGD_HOST - value: 'opentelemetry-demo-flagd' - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: RECOMMENDATION_SERVICE_PORT + value: "8080" + - name: PRODUCT_CATALOG_SERVICE_ADDR + value: "opentelemetry-demo-productcatalogservice:8080" + - name: OTEL_PYTHON_LOG_CORRELATION + value: "true" + - name: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION + value: python + - name: FLAGD_HOST + value: "opentelemetry-demo-flagd" + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 500Mi @@ -10670,7 +10553,6 @@ kind: Deployment metadata: name: opentelemetry-demo-shippingservice labels: - opentelemetry.io/name: opentelemetry-demo-shippingservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: shippingservice @@ -10681,12 +10563,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-shippingservice template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-shippingservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: shippingservice @@ -10695,30 +10575,29 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: shippingservice - image: 'ghcr.io/open-telemetry/demo:1.11.1-shippingservice' + image: "ghcr.io/open-telemetry/demo:1.11.1-shippingservice" imagePullPolicy: IfNotPresent ports: - - - containerPort: 8080 - name: service + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: SHIPPING_SERVICE_PORT - value: "8080" - - name: QUOTE_SERVICE_ADDR - value: http://opentelemetry-demo-quoteservice:8080 - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: SHIPPING_SERVICE_PORT + value: "8080" + - name: QUOTE_SERVICE_ADDR + value: http://opentelemetry-demo-quoteservice:8080 + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 20Mi @@ -10731,7 +10610,6 @@ kind: Deployment metadata: name: opentelemetry-demo-valkey labels: - opentelemetry.io/name: opentelemetry-demo-valkey app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: valkey @@ -10742,12 +10620,10 @@ spec: replicas: 1 selector: matchLabels: - opentelemetry.io/name: opentelemetry-demo-valkey template: metadata: labels: - opentelemetry.io/name: opentelemetry-demo-valkey app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: valkey @@ -10756,24 +10632,23 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: valkey - image: 'valkey/valkey:7.2-alpine' + image: "valkey/valkey:7.2-alpine" imagePullPolicy: IfNotPresent ports: - - - containerPort: 6379 - name: valkey + - containerPort: 6379 + name: valkey env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: 'opentelemetry-demo-otelcol' - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: "opentelemetry-demo-otelcol" + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 20Mi @@ -10824,109 +10699,108 @@ spec: affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - - weight: 1 - podAffinityTerm: - topologyKey: kubernetes.io/hostname - labelSelector: - matchExpressions: - - key: app.kubernetes.io/instance - operator: In - values: - - opentelemetry-demo - - key: app.kubernetes.io/name - operator: In - values: - - opensearch + - weight: 1 + podAffinityTerm: + topologyKey: kubernetes.io/hostname + labelSelector: + matchExpressions: + - key: app.kubernetes.io/instance + operator: In + values: + - opentelemetry-demo + - key: app.kubernetes.io/name + operator: In + values: + - opensearch terminationGracePeriodSeconds: 120 volumes: - - name: config - configMap: - name: otel-demo-opensearch-config - - emptyDir: {} - name: config-emptydir + - name: config + configMap: + name: otel-demo-opensearch-config + - emptyDir: {} + name: config-emptydir enableServiceLinks: true initContainers: - - name: configfile - image: "opensearchproject/opensearch:2.15.0" - imagePullPolicy: "IfNotPresent" - command: - - sh - - -c - - | - #!/usr/bin/env bash - cp -r /tmp/configfolder/* /tmp/config/ - resources: - {} - volumeMounts: - - mountPath: /tmp/config/ - name: config-emptydir - - name: config - mountPath: /tmp/configfolder/opensearch.yml - subPath: opensearch.yml + - name: configfile + image: "opensearchproject/opensearch:2.15.0" + imagePullPolicy: "IfNotPresent" + command: + - sh + - -c + - | + #!/usr/bin/env bash + cp -r /tmp/configfolder/* /tmp/config/ + resources: {} + volumeMounts: + - mountPath: /tmp/config/ + name: config-emptydir + - name: config + mountPath: /tmp/configfolder/opensearch.yml + subPath: opensearch.yml containers: - - name: "opensearch" - securityContext: - capabilities: - drop: - - ALL - runAsNonRoot: true - runAsUser: 1000 + - name: "opensearch" + securityContext: + capabilities: + drop: + - ALL + runAsNonRoot: true + runAsUser: 1000 - image: "opensearchproject/opensearch:2.15.0" - imagePullPolicy: "IfNotPresent" - readinessProbe: - failureThreshold: 3 - periodSeconds: 5 - tcpSocket: - port: 9200 - timeoutSeconds: 3 - startupProbe: - failureThreshold: 30 - initialDelaySeconds: 5 - periodSeconds: 10 - tcpSocket: - port: 9200 - timeoutSeconds: 3 - ports: - - name: http - containerPort: 9200 - - name: transport - containerPort: 9300 - - name: metrics - containerPort: 9600 - resources: - limits: - memory: 1Gi - requests: - cpu: 1000m - memory: 100Mi - env: - - name: node.name - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: discovery.seed_hosts - value: "opensearch-cluster-master-headless" - - name: cluster.name - value: "demo-cluster" - - name: network.host - value: "0.0.0.0" - - name: OPENSEARCH_JAVA_OPTS - value: "-Xms300m -Xmx300m" - - name: node.roles - value: "master,ingest,data,remote_cluster_client," - - name: discovery.type - value: "single-node" - - name: bootstrap.memory_lock - value: "true" - - name: DISABLE_INSTALL_DEMO_CONFIG - value: "true" - - name: DISABLE_SECURITY_PLUGIN - value: "true" - volumeMounts: - - name: config-emptydir - mountPath: /usr/share/opensearch/config/opensearch.yml - subPath: opensearch.yml + image: "opensearchproject/opensearch:2.15.0" + imagePullPolicy: "IfNotPresent" + readinessProbe: + failureThreshold: 3 + periodSeconds: 5 + tcpSocket: + port: 9200 + timeoutSeconds: 3 + startupProbe: + failureThreshold: 30 + initialDelaySeconds: 5 + periodSeconds: 10 + tcpSocket: + port: 9200 + timeoutSeconds: 3 + ports: + - name: http + containerPort: 9200 + - name: transport + containerPort: 9300 + - name: metrics + containerPort: 9600 + resources: + limits: + memory: 1Gi + requests: + cpu: 1000m + memory: 100Mi + env: + - name: node.name + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: discovery.seed_hosts + value: "opensearch-cluster-master-headless" + - name: cluster.name + value: "demo-cluster" + - name: network.host + value: "0.0.0.0" + - name: OPENSEARCH_JAVA_OPTS + value: "-Xms300m -Xmx300m" + - name: node.roles + value: "master,ingest,data,remote_cluster_client," + - name: discovery.type + value: "single-node" + - name: bootstrap.memory_lock + value: "true" + - name: DISABLE_INSTALL_DEMO_CONFIG + value: "true" + - name: DISABLE_SECURITY_PLUGIN + value: "true" + volumeMounts: + - name: config-emptydir + mountPath: /usr/share/opensearch/config/opensearch.yml + subPath: opensearch.yml --- # Source: opentelemetry-demo/charts/grafana/templates/tests/test-serviceaccount.yaml apiVersion: v1 From d2e98c520ac7c11a985283bec37d8f1681e5b488 Mon Sep 17 00:00:00 2001 From: Andrew Cholakian Date: Wed, 18 Sep 2024 16:03:57 -0500 Subject: [PATCH 2/2] Fix formatting --- kubernetes/opentelemetry-demo.yaml | 1382 +++++++++++++++------------- 1 file changed, 755 insertions(+), 627 deletions(-) diff --git a/kubernetes/opentelemetry-demo.yaml b/kubernetes/opentelemetry-demo.yaml index c9d3554114..4a43676841 100644 --- a/kubernetes/opentelemetry-demo.yaml +++ b/kubernetes/opentelemetry-demo.yaml @@ -71,7 +71,8 @@ metadata: app.kubernetes.io/part-of: prometheus name: opentelemetry-demo-prometheus-server namespace: otel-demo - annotations: {} + annotations: + {} --- # Source: opentelemetry-demo/templates/serviceaccount.yaml apiVersion: v1 @@ -79,6 +80,7 @@ kind: ServiceAccount metadata: name: opentelemetry-demo labels: + opentelemetry.io/name: opentelemetry-demo app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/name: opentelemetry-demo @@ -97,6 +99,7 @@ metadata: app.kubernetes.io/version: "11.1.0" type: Opaque data: + admin-user: "YWRtaW4=" admin-password: "YWRtaW4=" ldap-toml: "" @@ -112,6 +115,7 @@ metadata: app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "11.1.0" data: + plugins: grafana-opensearch-datasource grafana.ini: | [analytics] @@ -196,14 +200,14 @@ metadata: data: opensearch.yml: | cluster.name: opensearch-cluster - + # Bind to all interfaces because we don't know what IP address Docker will assign to us. network.host: 0.0.0.0 - + # Setting network.host to a non-loopback address enables the annoying bootstrap checks. "Single-node" mode disables them again. # Implicitly done if ".singleNode" is set to "true". # discovery.type: single-node - + # Start OpenSearch Security Demo Configuration # WARNING: revise all the lines below before you go into production plugins: @@ -256,7 +260,7 @@ metadata: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "0.105.0" - + data: relay: | connectors: @@ -459,12 +463,14 @@ metadata: name: opentelemetry-demo-flagd-config namespace: otel-demo labels: + opentelemetry.io/name: opentelemetry-demo app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/name: opentelemetry-demo app.kubernetes.io/version: "1.11.1" app.kubernetes.io/part-of: opentelemetry-demo data: + demo.flagd.json: | { "$schema": "https://flagd.dev/schema/v0/flags.json", @@ -579,12 +585,14 @@ metadata: name: opentelemetry-demo-grafana-dashboards namespace: otel-demo labels: + opentelemetry.io/name: opentelemetry-demo app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/name: opentelemetry-demo app.kubernetes.io/version: "1.11.1" app.kubernetes.io/part-of: opentelemetry-demo data: + demo-dashboard.json: |- { "annotations": { @@ -8238,7 +8246,7 @@ metadata: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "0.105.0" - + rules: - apiGroups: [""] resources: ["pods", "namespaces"] @@ -8327,15 +8335,15 @@ metadata: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "0.105.0" - + roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: opentelemetry-demo-otelcol subjects: - - kind: ServiceAccount - name: opentelemetry-demo-otelcol - namespace: otel-demo +- kind: ServiceAccount + name: opentelemetry-demo-otelcol + namespace: otel-demo --- # Source: opentelemetry-demo/charts/prometheus/templates/clusterrolebinding.yaml apiVersion: rbac.authorization.k8s.io/v1 @@ -8384,9 +8392,9 @@ roleRef: kind: Role name: opentelemetry-demo-grafana subjects: - - kind: ServiceAccount - name: opentelemetry-demo-grafana - namespace: otel-demo +- kind: ServiceAccount + name: opentelemetry-demo-grafana + namespace: otel-demo --- # Source: opentelemetry-demo/charts/grafana/templates/service.yaml apiVersion: v1 @@ -8517,19 +8525,20 @@ metadata: app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "2.15.0" app.kubernetes.io/component: otel-demo-opensearch - annotations: {} + annotations: + {} spec: type: ClusterIP selector: app.kubernetes.io/name: opensearch app.kubernetes.io/instance: opentelemetry-demo ports: - - name: http - protocol: TCP - port: 9200 - - name: transport - protocol: TCP - port: 9300 + - name: http + protocol: TCP + port: 9200 + - name: transport + protocol: TCP + port: 9300 --- # Source: opentelemetry-demo/charts/opensearch/templates/service.yaml kind: Service @@ -8551,12 +8560,12 @@ spec: app.kubernetes.io/name: opensearch app.kubernetes.io/instance: opentelemetry-demo ports: - - name: http - port: 9200 - - name: transport - port: 9300 - - name: metrics - port: 9600 + - name: http + port: 9200 + - name: transport + port: 9300 + - name: metrics + port: 9600 --- # Source: opentelemetry-demo/charts/opentelemetry-collector/templates/service.yaml apiVersion: v1 @@ -8568,11 +8577,12 @@ metadata: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "0.105.0" - + component: standalone-collector spec: type: ClusterIP ports: + - name: jaeger-compact port: 6831 targetPort: 6831 @@ -8643,6 +8653,7 @@ kind: Service metadata: name: opentelemetry-demo-adservice labels: + opentelemetry.io/name: opentelemetry-demo-adservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: adservice @@ -8656,6 +8667,7 @@ spec: name: tcp-service targetPort: 8080 selector: + opentelemetry.io/name: opentelemetry-demo-adservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8664,6 +8676,7 @@ kind: Service metadata: name: opentelemetry-demo-cartservice labels: + opentelemetry.io/name: opentelemetry-demo-cartservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: cartservice @@ -8677,6 +8690,7 @@ spec: name: tcp-service targetPort: 8080 selector: + opentelemetry.io/name: opentelemetry-demo-cartservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8685,6 +8699,7 @@ kind: Service metadata: name: opentelemetry-demo-checkoutservice labels: + opentelemetry.io/name: opentelemetry-demo-checkoutservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: checkoutservice @@ -8698,6 +8713,7 @@ spec: name: tcp-service targetPort: 8080 selector: + opentelemetry.io/name: opentelemetry-demo-checkoutservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8706,6 +8722,7 @@ kind: Service metadata: name: opentelemetry-demo-currencyservice labels: + opentelemetry.io/name: opentelemetry-demo-currencyservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: currencyservice @@ -8719,6 +8736,7 @@ spec: name: tcp-service targetPort: 8080 selector: + opentelemetry.io/name: opentelemetry-demo-currencyservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8727,6 +8745,7 @@ kind: Service metadata: name: opentelemetry-demo-emailservice labels: + opentelemetry.io/name: opentelemetry-demo-emailservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: emailservice @@ -8740,6 +8759,7 @@ spec: name: tcp-service targetPort: 8080 selector: + opentelemetry.io/name: opentelemetry-demo-emailservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8748,6 +8768,7 @@ kind: Service metadata: name: opentelemetry-demo-flagd labels: + opentelemetry.io/name: opentelemetry-demo-flagd app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: flagd @@ -8761,6 +8782,7 @@ spec: name: tcp-service targetPort: 8013 selector: + opentelemetry.io/name: opentelemetry-demo-flagd --- # Source: opentelemetry-demo/templates/component.yaml @@ -8769,6 +8791,7 @@ kind: Service metadata: name: opentelemetry-demo-frontend labels: + opentelemetry.io/name: opentelemetry-demo-frontend app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frontend @@ -8782,6 +8805,7 @@ spec: name: tcp-service targetPort: 8080 selector: + opentelemetry.io/name: opentelemetry-demo-frontend --- # Source: opentelemetry-demo/templates/component.yaml @@ -8790,6 +8814,7 @@ kind: Service metadata: name: opentelemetry-demo-frontendproxy labels: + opentelemetry.io/name: opentelemetry-demo-frontendproxy app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frontendproxy @@ -8803,6 +8828,7 @@ spec: name: tcp-service targetPort: 8080 selector: + opentelemetry.io/name: opentelemetry-demo-frontendproxy --- # Source: opentelemetry-demo/templates/component.yaml @@ -8811,6 +8837,7 @@ kind: Service metadata: name: opentelemetry-demo-imageprovider labels: + opentelemetry.io/name: opentelemetry-demo-imageprovider app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: imageprovider @@ -8824,6 +8851,7 @@ spec: name: tcp-service targetPort: 8081 selector: + opentelemetry.io/name: opentelemetry-demo-imageprovider --- # Source: opentelemetry-demo/templates/component.yaml @@ -8832,6 +8860,7 @@ kind: Service metadata: name: opentelemetry-demo-kafka labels: + opentelemetry.io/name: opentelemetry-demo-kafka app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: kafka @@ -8848,6 +8877,7 @@ spec: name: controller targetPort: 9093 selector: + opentelemetry.io/name: opentelemetry-demo-kafka --- # Source: opentelemetry-demo/templates/component.yaml @@ -8856,6 +8886,7 @@ kind: Service metadata: name: opentelemetry-demo-loadgenerator labels: + opentelemetry.io/name: opentelemetry-demo-loadgenerator app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: loadgenerator @@ -8869,6 +8900,7 @@ spec: name: tcp-service targetPort: 8089 selector: + opentelemetry.io/name: opentelemetry-demo-loadgenerator --- # Source: opentelemetry-demo/templates/component.yaml @@ -8877,6 +8909,7 @@ kind: Service metadata: name: opentelemetry-demo-paymentservice labels: + opentelemetry.io/name: opentelemetry-demo-paymentservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: paymentservice @@ -8890,6 +8923,7 @@ spec: name: tcp-service targetPort: 8080 selector: + opentelemetry.io/name: opentelemetry-demo-paymentservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8898,6 +8932,7 @@ kind: Service metadata: name: opentelemetry-demo-productcatalogservice labels: + opentelemetry.io/name: opentelemetry-demo-productcatalogservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: productcatalogservice @@ -8911,6 +8946,7 @@ spec: name: tcp-service targetPort: 8080 selector: + opentelemetry.io/name: opentelemetry-demo-productcatalogservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8919,6 +8955,7 @@ kind: Service metadata: name: opentelemetry-demo-quoteservice labels: + opentelemetry.io/name: opentelemetry-demo-quoteservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: quoteservice @@ -8932,6 +8969,7 @@ spec: name: tcp-service targetPort: 8080 selector: + opentelemetry.io/name: opentelemetry-demo-quoteservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8940,6 +8978,7 @@ kind: Service metadata: name: opentelemetry-demo-recommendationservice labels: + opentelemetry.io/name: opentelemetry-demo-recommendationservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: recommendationservice @@ -8953,6 +8992,7 @@ spec: name: tcp-service targetPort: 8080 selector: + opentelemetry.io/name: opentelemetry-demo-recommendationservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8961,6 +9001,7 @@ kind: Service metadata: name: opentelemetry-demo-shippingservice labels: + opentelemetry.io/name: opentelemetry-demo-shippingservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: shippingservice @@ -8974,6 +9015,7 @@ spec: name: tcp-service targetPort: 8080 selector: + opentelemetry.io/name: opentelemetry-demo-shippingservice --- # Source: opentelemetry-demo/templates/component.yaml @@ -8982,6 +9024,7 @@ kind: Service metadata: name: opentelemetry-demo-valkey labels: + opentelemetry.io/name: opentelemetry-demo-valkey app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: valkey @@ -8995,6 +9038,7 @@ spec: name: valkey targetPort: 6379 selector: + opentelemetry.io/name: opentelemetry-demo-valkey --- # Source: opentelemetry-demo/charts/grafana/templates/deployment.yaml @@ -9027,6 +9071,7 @@ spec: checksum/secret: bed677784356b2af7fb0d87455db21f077853059b594101a4f6532bfbd962a7f kubectl.kubernetes.io/default-container: grafana spec: + serviceAccountName: opentelemetry-demo-grafana automountServiceAccountToken: true securityContext: @@ -9043,7 +9088,7 @@ spec: allowPrivilegeEscalation: false capabilities: drop: - - ALL + - ALL seccompProfile: type: RuntimeDefault volumeMounts: @@ -9153,20 +9198,22 @@ spec: prometheus.io/port: "14269" prometheus.io/scrape: "true" spec: + containers: - env: - name: METRICS_STORAGE_TYPE value: prometheus - name: SPAN_STORAGE_TYPE value: memory - + - name: COLLECTOR_ZIPKIN_HOST_PORT value: :9411 - name: JAEGER_DISABLED value: "false" - name: COLLECTOR_OTLP_ENABLED value: "true" - securityContext: {} + securityContext: + {} image: jaegertracing/all-in-one:1.53.0 imagePullPolicy: IfNotPresent name: jaeger @@ -9236,7 +9283,7 @@ metadata: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/version: "0.105.0" - + spec: replicas: 1 revisionHistoryLimit: 10 @@ -9258,18 +9305,22 @@ spec: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo component: standalone-collector - + spec: + serviceAccountName: opentelemetry-demo-otelcol - securityContext: {} + securityContext: + {} containers: - name: opentelemetry-collector args: - --config=/conf/relay.yaml - securityContext: {} + securityContext: + {} image: "otel/opentelemetry-collector-contrib:0.105.0" imagePullPolicy: IfNotPresent ports: + - name: jaeger-compact containerPort: 6831 protocol: UDP @@ -9360,6 +9411,7 @@ spec: enableServiceLinks: true serviceAccountName: opentelemetry-demo-prometheus-server containers: + - name: prometheus-server image: "quay.io/prometheus/prometheus:v2.53.1" imagePullPolicy: "IfNotPresent" @@ -9414,7 +9466,8 @@ spec: configMap: name: opentelemetry-demo-prometheus-server - name: storage-volume - emptyDir: {} + emptyDir: + {} --- # Source: opentelemetry-demo/templates/component.yaml apiVersion: apps/v1 @@ -9422,6 +9475,7 @@ kind: Deployment metadata: name: opentelemetry-demo-accountingservice labels: + opentelemetry.io/name: opentelemetry-demo-accountingservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: accountingservice @@ -9432,10 +9486,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-accountingservice template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-accountingservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: accountingservice @@ -9444,24 +9500,24 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: accountingservice - image: "ghcr.io/open-telemetry/demo:1.11.1-accountingservice" + image: 'ghcr.io/open-telemetry/demo:1.11.1-accountingservice' imagePullPolicy: IfNotPresent env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: KAFKA_SERVICE_ADDR - value: "opentelemetry-demo-kafka:9092" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: KAFKA_SERVICE_ADDR + value: 'opentelemetry-demo-kafka:9092' + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 120Mi @@ -9469,10 +9525,10 @@ spec: volumes: initContainers: - command: - - sh - - -c - - until nc -z -v -w30 opentelemetry-demo-kafka 9092; do echo waiting - for kafka; sleep 2; done; + - sh + - -c + - until nc -z -v -w30 opentelemetry-demo-kafka 9092; do echo waiting + for kafka; sleep 2; done; image: busybox:latest name: wait-for-kafka --- @@ -9482,6 +9538,7 @@ kind: Deployment metadata: name: opentelemetry-demo-adservice labels: + opentelemetry.io/name: opentelemetry-demo-adservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: adservice @@ -9492,10 +9549,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-adservice template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-adservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: adservice @@ -9504,33 +9563,34 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: adservice - image: "ghcr.io/open-telemetry/demo:1.11.1-adservice" + image: 'ghcr.io/open-telemetry/demo:1.11.1-adservice' imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 - name: service + + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: AD_SERVICE_PORT - value: "8080" - - name: FLAGD_HOST - value: "opentelemetry-demo-flagd" - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4318 - - name: OTEL_LOGS_EXPORTER - value: otlp - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: AD_SERVICE_PORT + value: "8080" + - name: FLAGD_HOST + value: 'opentelemetry-demo-flagd' + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: OTEL_LOGS_EXPORTER + value: otlp + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 300Mi @@ -9543,6 +9603,7 @@ kind: Deployment metadata: name: opentelemetry-demo-cartservice labels: + opentelemetry.io/name: opentelemetry-demo-cartservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: cartservice @@ -9553,10 +9614,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-cartservice template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-cartservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: cartservice @@ -9565,35 +9628,36 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: cartservice - image: "ghcr.io/open-telemetry/demo:1.11.1-cartservice" + image: 'ghcr.io/open-telemetry/demo:1.11.1-cartservice' imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 - name: service + + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: CART_SERVICE_PORT - value: "8080" - - name: ASPNETCORE_URLS - value: http://*:$(CART_SERVICE_PORT) - - name: VALKEY_ADDR - value: "opentelemetry-demo-valkey:6379" - - name: FLAGD_HOST - value: "opentelemetry-demo-flagd" - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: CART_SERVICE_PORT + value: "8080" + - name: ASPNETCORE_URLS + value: http://*:$(CART_SERVICE_PORT) + - name: VALKEY_ADDR + value: 'opentelemetry-demo-valkey:6379' + - name: FLAGD_HOST + value: 'opentelemetry-demo-flagd' + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 160Mi @@ -9601,10 +9665,10 @@ spec: volumes: initContainers: - command: - - sh - - -c - - until nc -z -v -w30 opentelemetry-demo-valkey 6379; do echo waiting - for valkey; sleep 2; done; + - sh + - -c + - until nc -z -v -w30 opentelemetry-demo-valkey 6379; do echo waiting + for valkey; sleep 2; done; image: busybox:latest name: wait-for-valkey --- @@ -9614,6 +9678,7 @@ kind: Deployment metadata: name: opentelemetry-demo-checkoutservice labels: + opentelemetry.io/name: opentelemetry-demo-checkoutservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: checkoutservice @@ -9624,10 +9689,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-checkoutservice template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-checkoutservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: checkoutservice @@ -9636,45 +9703,46 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: checkoutservice - image: "ghcr.io/open-telemetry/demo:1.11.1-checkoutservice" + image: 'ghcr.io/open-telemetry/demo:1.11.1-checkoutservice' imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 - name: service + + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: CHECKOUT_SERVICE_PORT - value: "8080" - - name: CART_SERVICE_ADDR - value: "opentelemetry-demo-cartservice:8080" - - name: CURRENCY_SERVICE_ADDR - value: "opentelemetry-demo-currencyservice:8080" - - name: EMAIL_SERVICE_ADDR - value: http://opentelemetry-demo-emailservice:8080 - - name: PAYMENT_SERVICE_ADDR - value: "opentelemetry-demo-paymentservice:8080" - - name: PRODUCT_CATALOG_SERVICE_ADDR - value: "opentelemetry-demo-productcatalogservice:8080" - - name: SHIPPING_SERVICE_ADDR - value: "opentelemetry-demo-shippingservice:8080" - - name: KAFKA_SERVICE_ADDR - value: "opentelemetry-demo-kafka:9092" - - name: FLAGD_HOST - value: "opentelemetry-demo-flagd" - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: CHECKOUT_SERVICE_PORT + value: "8080" + - name: CART_SERVICE_ADDR + value: 'opentelemetry-demo-cartservice:8080' + - name: CURRENCY_SERVICE_ADDR + value: 'opentelemetry-demo-currencyservice:8080' + - name: EMAIL_SERVICE_ADDR + value: http://opentelemetry-demo-emailservice:8080 + - name: PAYMENT_SERVICE_ADDR + value: 'opentelemetry-demo-paymentservice:8080' + - name: PRODUCT_CATALOG_SERVICE_ADDR + value: 'opentelemetry-demo-productcatalogservice:8080' + - name: SHIPPING_SERVICE_ADDR + value: 'opentelemetry-demo-shippingservice:8080' + - name: KAFKA_SERVICE_ADDR + value: 'opentelemetry-demo-kafka:9092' + - name: FLAGD_HOST + value: 'opentelemetry-demo-flagd' + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 20Mi @@ -9682,10 +9750,10 @@ spec: volumes: initContainers: - command: - - sh - - -c - - until nc -z -v -w30 opentelemetry-demo-kafka 9092; do echo waiting - for kafka; sleep 2; done; + - sh + - -c + - until nc -z -v -w30 opentelemetry-demo-kafka 9092; do echo waiting + for kafka; sleep 2; done; image: busybox:latest name: wait-for-kafka --- @@ -9695,6 +9763,7 @@ kind: Deployment metadata: name: opentelemetry-demo-currencyservice labels: + opentelemetry.io/name: opentelemetry-demo-currencyservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: currencyservice @@ -9705,10 +9774,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-currencyservice template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-currencyservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: currencyservice @@ -9717,29 +9788,30 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: currencyservice - image: "ghcr.io/open-telemetry/demo:1.11.1-currencyservice" + image: 'ghcr.io/open-telemetry/demo:1.11.1-currencyservice' imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 - name: service + + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: CURRENCY_SERVICE_PORT - value: "8080" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: VERSION - value: "1.11.1" - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: CURRENCY_SERVICE_PORT + value: "8080" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: VERSION + value: '1.11.1' + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 20Mi @@ -9752,6 +9824,7 @@ kind: Deployment metadata: name: opentelemetry-demo-emailservice labels: + opentelemetry.io/name: opentelemetry-demo-emailservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: emailservice @@ -9762,10 +9835,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-emailservice template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-emailservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: emailservice @@ -9774,29 +9849,30 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: emailservice - image: "ghcr.io/open-telemetry/demo:1.11.1-emailservice" + image: 'ghcr.io/open-telemetry/demo:1.11.1-emailservice' imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 - name: service + + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: EMAIL_SERVICE_PORT - value: "8080" - - name: APP_ENV - value: production - - name: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4318/v1/traces - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: EMAIL_SERVICE_PORT + value: "8080" + - name: APP_ENV + value: production + - name: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318/v1/traces + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 100Mi @@ -9809,6 +9885,7 @@ kind: Deployment metadata: name: opentelemetry-demo-flagd labels: + opentelemetry.io/name: opentelemetry-demo-flagd app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: flagd @@ -9819,10 +9896,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-flagd template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-flagd app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: flagd @@ -9831,32 +9910,33 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: flagd - image: "ghcr.io/open-feature/flagd:v0.11.2" + image: 'ghcr.io/open-feature/flagd:v0.11.2' imagePullPolicy: IfNotPresent command: - - /flagd-build - - start - - --uri - - file:./etc/flagd/demo.flagd.json + - /flagd-build + - start + - --uri + - file:./etc/flagd/demo.flagd.json ports: - - containerPort: 8013 - name: service + + - containerPort: 8013 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: FLAGD_METRICS_EXPORTER - value: otel - - name: FLAGD_OTEL_COLLECTOR_URI - value: $(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: FLAGD_METRICS_EXPORTER + value: otel + - name: FLAGD_OTEL_COLLECTOR_URI + value: $(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 50Mi @@ -9874,6 +9954,7 @@ kind: Deployment metadata: name: opentelemetry-demo-frauddetectionservice labels: + opentelemetry.io/name: opentelemetry-demo-frauddetectionservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frauddetectionservice @@ -9884,10 +9965,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-frauddetectionservice template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-frauddetectionservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frauddetectionservice @@ -9896,28 +9979,28 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: frauddetectionservice - image: "ghcr.io/open-telemetry/demo:1.11.1-frauddetectionservice" + image: 'ghcr.io/open-telemetry/demo:1.11.1-frauddetectionservice' imagePullPolicy: IfNotPresent env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: KAFKA_SERVICE_ADDR - value: "opentelemetry-demo-kafka:9092" - - name: FLAGD_HOST - value: "opentelemetry-demo-flagd" - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4318 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: KAFKA_SERVICE_ADDR + value: 'opentelemetry-demo-kafka:9092' + - name: FLAGD_HOST + value: 'opentelemetry-demo-flagd' + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 300Mi @@ -9925,10 +10008,10 @@ spec: volumes: initContainers: - command: - - sh - - -c - - until nc -z -v -w30 opentelemetry-demo-kafka 9092; do echo waiting - for kafka; sleep 2; done; + - sh + - -c + - until nc -z -v -w30 opentelemetry-demo-kafka 9092; do echo waiting + for kafka; sleep 2; done; image: busybox:latest name: wait-for-kafka --- @@ -9938,6 +10021,7 @@ kind: Deployment metadata: name: opentelemetry-demo-frontend labels: + opentelemetry.io/name: opentelemetry-demo-frontend app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frontend @@ -9948,10 +10032,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-frontend template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-frontend app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frontend @@ -9960,53 +10046,54 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: frontend - image: "ghcr.io/open-telemetry/demo:1.11.1-frontend" + image: 'ghcr.io/open-telemetry/demo:1.11.1-frontend' imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 - name: service + + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: FRONTEND_PORT - value: "8080" - - name: FRONTEND_ADDR - value: :8080 - - name: AD_SERVICE_ADDR - value: "opentelemetry-demo-adservice:8080" - - name: CART_SERVICE_ADDR - value: "opentelemetry-demo-cartservice:8080" - - name: CHECKOUT_SERVICE_ADDR - value: "opentelemetry-demo-checkoutservice:8080" - - name: CURRENCY_SERVICE_ADDR - value: "opentelemetry-demo-currencyservice:8080" - - name: PRODUCT_CATALOG_SERVICE_ADDR - value: "opentelemetry-demo-productcatalogservice:8080" - - name: RECOMMENDATION_SERVICE_ADDR - value: "opentelemetry-demo-recommendationservice:8080" - - name: SHIPPING_SERVICE_ADDR - value: "opentelemetry-demo-shippingservice:8080" - - name: FLAGD_HOST - value: "opentelemetry-demo-flagd" - - name: FLAGD_PORT - value: "8013" - - name: OTEL_COLLECTOR_HOST - value: $(OTEL_COLLECTOR_NAME) - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: WEB_OTEL_SERVICE_NAME - value: frontend-web - - name: PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT - value: http://localhost:8080/otlp-http/v1/traces - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: FRONTEND_PORT + value: "8080" + - name: FRONTEND_ADDR + value: :8080 + - name: AD_SERVICE_ADDR + value: 'opentelemetry-demo-adservice:8080' + - name: CART_SERVICE_ADDR + value: 'opentelemetry-demo-cartservice:8080' + - name: CHECKOUT_SERVICE_ADDR + value: 'opentelemetry-demo-checkoutservice:8080' + - name: CURRENCY_SERVICE_ADDR + value: 'opentelemetry-demo-currencyservice:8080' + - name: PRODUCT_CATALOG_SERVICE_ADDR + value: 'opentelemetry-demo-productcatalogservice:8080' + - name: RECOMMENDATION_SERVICE_ADDR + value: 'opentelemetry-demo-recommendationservice:8080' + - name: SHIPPING_SERVICE_ADDR + value: 'opentelemetry-demo-shippingservice:8080' + - name: FLAGD_HOST + value: 'opentelemetry-demo-flagd' + - name: FLAGD_PORT + value: "8013" + - name: OTEL_COLLECTOR_HOST + value: $(OTEL_COLLECTOR_NAME) + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: WEB_OTEL_SERVICE_NAME + value: frontend-web + - name: PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + value: http://localhost:8080/otlp-http/v1/traces + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 250Mi @@ -10023,6 +10110,7 @@ kind: Deployment metadata: name: opentelemetry-demo-frontendproxy labels: + opentelemetry.io/name: opentelemetry-demo-frontendproxy app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frontendproxy @@ -10033,10 +10121,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-frontendproxy template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-frontendproxy app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: frontendproxy @@ -10045,55 +10135,56 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: frontendproxy - image: "ghcr.io/open-telemetry/demo:1.11.1-frontendproxy" + image: 'ghcr.io/open-telemetry/demo:1.11.1-frontendproxy' imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 - name: service + + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: ENVOY_PORT - value: "8080" - - name: FLAGD_HOST - value: "opentelemetry-demo-flagd" - - name: FLAGD_PORT - value: "8013" - - name: FRONTEND_HOST - value: "opentelemetry-demo-frontend" - - name: FRONTEND_PORT - value: "8080" - - name: GRAFANA_SERVICE_HOST - value: "opentelemetry-demo-grafana" - - name: GRAFANA_SERVICE_PORT - value: "80" - - name: IMAGE_PROVIDER_HOST - value: "opentelemetry-demo-imageprovider" - - name: IMAGE_PROVIDER_PORT - value: "8081" - - name: JAEGER_SERVICE_HOST - value: "opentelemetry-demo-jaeger-query" - - name: JAEGER_SERVICE_PORT - value: "16686" - - name: LOCUST_WEB_HOST - value: "opentelemetry-demo-loadgenerator" - - name: LOCUST_WEB_PORT - value: "8089" - - name: OTEL_COLLECTOR_HOST - value: $(OTEL_COLLECTOR_NAME) - - name: OTEL_COLLECTOR_PORT_GRPC - value: "4317" - - name: OTEL_COLLECTOR_PORT_HTTP - value: "4318" - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: ENVOY_PORT + value: "8080" + - name: FLAGD_HOST + value: 'opentelemetry-demo-flagd' + - name: FLAGD_PORT + value: "8013" + - name: FRONTEND_HOST + value: 'opentelemetry-demo-frontend' + - name: FRONTEND_PORT + value: "8080" + - name: GRAFANA_SERVICE_HOST + value: 'opentelemetry-demo-grafana' + - name: GRAFANA_SERVICE_PORT + value: "80" + - name: IMAGE_PROVIDER_HOST + value: 'opentelemetry-demo-imageprovider' + - name: IMAGE_PROVIDER_PORT + value: "8081" + - name: JAEGER_SERVICE_HOST + value: 'opentelemetry-demo-jaeger-query' + - name: JAEGER_SERVICE_PORT + value: "16686" + - name: LOCUST_WEB_HOST + value: 'opentelemetry-demo-loadgenerator' + - name: LOCUST_WEB_PORT + value: "8089" + - name: OTEL_COLLECTOR_HOST + value: $(OTEL_COLLECTOR_NAME) + - name: OTEL_COLLECTOR_PORT_GRPC + value: "4317" + - name: OTEL_COLLECTOR_PORT_HTTP + value: "4318" + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 50Mi @@ -10110,6 +10201,7 @@ kind: Deployment metadata: name: opentelemetry-demo-imageprovider labels: + opentelemetry.io/name: opentelemetry-demo-imageprovider app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: imageprovider @@ -10120,10 +10212,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-imageprovider template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-imageprovider app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: imageprovider @@ -10132,29 +10226,30 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: imageprovider - image: "ghcr.io/open-telemetry/demo:1.11.1-imageprovider" + image: 'ghcr.io/open-telemetry/demo:1.11.1-imageprovider' imagePullPolicy: IfNotPresent ports: - - containerPort: 8081 - name: service + + - containerPort: 8081 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: IMAGE_PROVIDER_PORT - value: "8081" - - name: OTEL_COLLECTOR_PORT_GRPC - value: "4317" - - name: OTEL_COLLECTOR_HOST - value: $(OTEL_COLLECTOR_NAME) - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: IMAGE_PROVIDER_PORT + value: "8081" + - name: OTEL_COLLECTOR_PORT_GRPC + value: "4317" + - name: OTEL_COLLECTOR_HOST + value: $(OTEL_COLLECTOR_NAME) + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 50Mi @@ -10167,6 +10262,7 @@ kind: Deployment metadata: name: opentelemetry-demo-kafka labels: + opentelemetry.io/name: opentelemetry-demo-kafka app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: kafka @@ -10177,10 +10273,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-kafka template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-kafka app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: kafka @@ -10189,33 +10287,34 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: kafka - image: "ghcr.io/open-telemetry/demo:1.11.1-kafka" + image: 'ghcr.io/open-telemetry/demo:1.11.1-kafka' imagePullPolicy: IfNotPresent ports: - - containerPort: 9092 - name: plaintext - - containerPort: 9093 - name: controller + + - containerPort: 9092 + name: plaintext + - containerPort: 9093 + name: controller env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: KAFKA_ADVERTISED_LISTENERS - value: PLAINTEXT://opentelemetry-demo-kafka:9092 - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4318 - - name: KAFKA_HEAP_OPTS - value: -Xmx400M -Xms400M - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 - - name: OTEL_INFERRED_SPANS_ENABLED - value: false + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: KAFKA_ADVERTISED_LISTENERS + value: PLAINTEXT://opentelemetry-demo-kafka:9092 + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: KAFKA_HEAP_OPTS + value: -Xmx400M -Xms400M + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_INFERRED_SPANS_ENABLED + value: false resources: limits: memory: 600Mi @@ -10232,6 +10331,7 @@ kind: Deployment metadata: name: opentelemetry-demo-loadgenerator labels: + opentelemetry.io/name: opentelemetry-demo-loadgenerator app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: loadgenerator @@ -10242,10 +10342,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-loadgenerator template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-loadgenerator app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: loadgenerator @@ -10254,45 +10356,46 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: loadgenerator - image: "ghcr.io/open-telemetry/demo:1.11.1-loadgenerator" + image: 'ghcr.io/open-telemetry/demo:1.11.1-loadgenerator' imagePullPolicy: IfNotPresent ports: - - containerPort: 8089 - name: service + + - containerPort: 8089 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: LOCUST_WEB_PORT - value: "8089" - - name: LOCUST_USERS - value: "10" - - name: LOCUST_SPAWN_RATE - value: "1" - - name: LOCUST_HOST - value: http://opentelemetry-demo-frontendproxy:8080 - - name: LOCUST_HEADLESS - value: "false" - - name: LOCUST_AUTOSTART - value: "true" - - name: LOCUST_BROWSER_TRAFFIC_ENABLED - value: "true" - - name: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION - value: python - - name: FLAGD_HOST - value: "opentelemetry-demo-flagd" - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: LOCUST_WEB_PORT + value: "8089" + - name: LOCUST_USERS + value: "10" + - name: LOCUST_SPAWN_RATE + value: "1" + - name: LOCUST_HOST + value: http://opentelemetry-demo-frontendproxy:8080 + - name: LOCUST_HEADLESS + value: "false" + - name: LOCUST_AUTOSTART + value: "true" + - name: LOCUST_BROWSER_TRAFFIC_ENABLED + value: "true" + - name: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION + value: python + - name: FLAGD_HOST + value: 'opentelemetry-demo-flagd' + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 1Gi @@ -10305,6 +10408,7 @@ kind: Deployment metadata: name: opentelemetry-demo-paymentservice labels: + opentelemetry.io/name: opentelemetry-demo-paymentservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: paymentservice @@ -10315,10 +10419,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-paymentservice template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-paymentservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: paymentservice @@ -10327,31 +10433,32 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: paymentservice - image: "ghcr.io/open-telemetry/demo:1.11.1-paymentservice" + image: 'ghcr.io/open-telemetry/demo:1.11.1-paymentservice' imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 - name: service + + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: PAYMENT_SERVICE_PORT - value: "8080" - - name: FLAGD_HOST - value: "opentelemetry-demo-flagd" - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: PAYMENT_SERVICE_PORT + value: "8080" + - name: FLAGD_HOST + value: 'opentelemetry-demo-flagd' + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 120Mi @@ -10368,6 +10475,7 @@ kind: Deployment metadata: name: opentelemetry-demo-productcatalogservice labels: + opentelemetry.io/name: opentelemetry-demo-productcatalogservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: productcatalogservice @@ -10378,10 +10486,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-productcatalogservice template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-productcatalogservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: productcatalogservice @@ -10390,31 +10500,32 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: productcatalogservice - image: "ghcr.io/open-telemetry/demo:1.11.1-productcatalogservice" + image: 'ghcr.io/open-telemetry/demo:1.11.1-productcatalogservice' imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 - name: service + + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: PRODUCT_CATALOG_SERVICE_PORT - value: "8080" - - name: FLAGD_HOST - value: "opentelemetry-demo-flagd" - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: PRODUCT_CATALOG_SERVICE_PORT + value: "8080" + - name: FLAGD_HOST + value: 'opentelemetry-demo-flagd' + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 20Mi @@ -10427,6 +10538,7 @@ kind: Deployment metadata: name: opentelemetry-demo-quoteservice labels: + opentelemetry.io/name: opentelemetry-demo-quoteservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: quoteservice @@ -10437,10 +10549,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-quoteservice template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-quoteservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: quoteservice @@ -10449,29 +10563,30 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: quoteservice - image: "ghcr.io/open-telemetry/demo:1.11.1-quoteservice" + image: 'ghcr.io/open-telemetry/demo:1.11.1-quoteservice' imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 - name: service + + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: QUOTE_SERVICE_PORT - value: "8080" - - name: OTEL_PHP_AUTOLOAD_ENABLED - value: "true" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4318 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: QUOTE_SERVICE_PORT + value: "8080" + - name: OTEL_PHP_AUTOLOAD_ENABLED + value: "true" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 40Mi @@ -10488,6 +10603,7 @@ kind: Deployment metadata: name: opentelemetry-demo-recommendationservice labels: + opentelemetry.io/name: opentelemetry-demo-recommendationservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: recommendationservice @@ -10498,10 +10614,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-recommendationservice template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-recommendationservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: recommendationservice @@ -10510,37 +10628,38 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: recommendationservice - image: "ghcr.io/open-telemetry/demo:1.11.1-recommendationservice" + image: 'ghcr.io/open-telemetry/demo:1.11.1-recommendationservice' imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 - name: service + + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: RECOMMENDATION_SERVICE_PORT - value: "8080" - - name: PRODUCT_CATALOG_SERVICE_ADDR - value: "opentelemetry-demo-productcatalogservice:8080" - - name: OTEL_PYTHON_LOG_CORRELATION - value: "true" - - name: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION - value: python - - name: FLAGD_HOST - value: "opentelemetry-demo-flagd" - - name: FLAGD_PORT - value: "8013" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: RECOMMENDATION_SERVICE_PORT + value: "8080" + - name: PRODUCT_CATALOG_SERVICE_ADDR + value: 'opentelemetry-demo-productcatalogservice:8080' + - name: OTEL_PYTHON_LOG_CORRELATION + value: "true" + - name: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION + value: python + - name: FLAGD_HOST + value: 'opentelemetry-demo-flagd' + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 500Mi @@ -10553,6 +10672,7 @@ kind: Deployment metadata: name: opentelemetry-demo-shippingservice labels: + opentelemetry.io/name: opentelemetry-demo-shippingservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: shippingservice @@ -10563,10 +10683,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-shippingservice template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-shippingservice app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: shippingservice @@ -10575,29 +10697,30 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: shippingservice - image: "ghcr.io/open-telemetry/demo:1.11.1-shippingservice" + image: 'ghcr.io/open-telemetry/demo:1.11.1-shippingservice' imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 - name: service + + - containerPort: 8080 + name: service env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: SHIPPING_SERVICE_PORT - value: "8080" - - name: QUOTE_SERVICE_ADDR - value: http://opentelemetry-demo-quoteservice:8080 - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: http://$(OTEL_COLLECTOR_NAME):4317 - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: SHIPPING_SERVICE_PORT + value: "8080" + - name: QUOTE_SERVICE_ADDR + value: http://opentelemetry-demo-quoteservice:8080 + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 20Mi @@ -10610,6 +10733,7 @@ kind: Deployment metadata: name: opentelemetry-demo-valkey labels: + opentelemetry.io/name: opentelemetry-demo-valkey app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: valkey @@ -10620,10 +10744,12 @@ spec: replicas: 1 selector: matchLabels: + opentelemetry.io/name: opentelemetry-demo-valkey template: metadata: labels: + opentelemetry.io/name: opentelemetry-demo-valkey app.kubernetes.io/instance: opentelemetry-demo app.kubernetes.io/component: valkey @@ -10632,23 +10758,24 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: valkey - image: "valkey/valkey:7.2-alpine" + image: 'valkey/valkey:7.2-alpine' imagePullPolicy: IfNotPresent ports: - - containerPort: 6379 - name: valkey + + - containerPort: 6379 + name: valkey env: - - name: OTEL_SERVICE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.labels['app.kubernetes.io/component'] - - name: OTEL_COLLECTOR_NAME - value: "opentelemetry-demo-otelcol" - - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - value: cumulative - - name: OTEL_RESOURCE_ATTRIBUTES - value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: 'opentelemetry-demo-otelcol' + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=1.11.1 resources: limits: memory: 20Mi @@ -10699,108 +10826,109 @@ spec: affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - - weight: 1 - podAffinityTerm: - topologyKey: kubernetes.io/hostname - labelSelector: - matchExpressions: - - key: app.kubernetes.io/instance - operator: In - values: - - opentelemetry-demo - - key: app.kubernetes.io/name - operator: In - values: - - opensearch + - weight: 1 + podAffinityTerm: + topologyKey: kubernetes.io/hostname + labelSelector: + matchExpressions: + - key: app.kubernetes.io/instance + operator: In + values: + - opentelemetry-demo + - key: app.kubernetes.io/name + operator: In + values: + - opensearch terminationGracePeriodSeconds: 120 volumes: - - name: config - configMap: - name: otel-demo-opensearch-config - - emptyDir: {} - name: config-emptydir + - name: config + configMap: + name: otel-demo-opensearch-config + - emptyDir: {} + name: config-emptydir enableServiceLinks: true initContainers: - - name: configfile - image: "opensearchproject/opensearch:2.15.0" - imagePullPolicy: "IfNotPresent" - command: - - sh - - -c - - | - #!/usr/bin/env bash - cp -r /tmp/configfolder/* /tmp/config/ - resources: {} - volumeMounts: - - mountPath: /tmp/config/ - name: config-emptydir - - name: config - mountPath: /tmp/configfolder/opensearch.yml - subPath: opensearch.yml + - name: configfile + image: "opensearchproject/opensearch:2.15.0" + imagePullPolicy: "IfNotPresent" + command: + - sh + - -c + - | + #!/usr/bin/env bash + cp -r /tmp/configfolder/* /tmp/config/ + resources: + {} + volumeMounts: + - mountPath: /tmp/config/ + name: config-emptydir + - name: config + mountPath: /tmp/configfolder/opensearch.yml + subPath: opensearch.yml containers: - - name: "opensearch" - securityContext: - capabilities: - drop: - - ALL - runAsNonRoot: true - runAsUser: 1000 + - name: "opensearch" + securityContext: + capabilities: + drop: + - ALL + runAsNonRoot: true + runAsUser: 1000 - image: "opensearchproject/opensearch:2.15.0" - imagePullPolicy: "IfNotPresent" - readinessProbe: - failureThreshold: 3 - periodSeconds: 5 - tcpSocket: - port: 9200 - timeoutSeconds: 3 - startupProbe: - failureThreshold: 30 - initialDelaySeconds: 5 - periodSeconds: 10 - tcpSocket: - port: 9200 - timeoutSeconds: 3 - ports: - - name: http - containerPort: 9200 - - name: transport - containerPort: 9300 - - name: metrics - containerPort: 9600 - resources: - limits: - memory: 1Gi - requests: - cpu: 1000m - memory: 100Mi - env: - - name: node.name - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: discovery.seed_hosts - value: "opensearch-cluster-master-headless" - - name: cluster.name - value: "demo-cluster" - - name: network.host - value: "0.0.0.0" - - name: OPENSEARCH_JAVA_OPTS - value: "-Xms300m -Xmx300m" - - name: node.roles - value: "master,ingest,data,remote_cluster_client," - - name: discovery.type - value: "single-node" - - name: bootstrap.memory_lock - value: "true" - - name: DISABLE_INSTALL_DEMO_CONFIG - value: "true" - - name: DISABLE_SECURITY_PLUGIN - value: "true" - volumeMounts: - - name: config-emptydir - mountPath: /usr/share/opensearch/config/opensearch.yml - subPath: opensearch.yml + image: "opensearchproject/opensearch:2.15.0" + imagePullPolicy: "IfNotPresent" + readinessProbe: + failureThreshold: 3 + periodSeconds: 5 + tcpSocket: + port: 9200 + timeoutSeconds: 3 + startupProbe: + failureThreshold: 30 + initialDelaySeconds: 5 + periodSeconds: 10 + tcpSocket: + port: 9200 + timeoutSeconds: 3 + ports: + - name: http + containerPort: 9200 + - name: transport + containerPort: 9300 + - name: metrics + containerPort: 9600 + resources: + limits: + memory: 1Gi + requests: + cpu: 1000m + memory: 100Mi + env: + - name: node.name + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: discovery.seed_hosts + value: "opensearch-cluster-master-headless" + - name: cluster.name + value: "demo-cluster" + - name: network.host + value: "0.0.0.0" + - name: OPENSEARCH_JAVA_OPTS + value: "-Xms300m -Xmx300m" + - name: node.roles + value: "master,ingest,data,remote_cluster_client," + - name: discovery.type + value: "single-node" + - name: bootstrap.memory_lock + value: "true" + - name: DISABLE_INSTALL_DEMO_CONFIG + value: "true" + - name: DISABLE_SECURITY_PLUGIN + value: "true" + volumeMounts: + - name: config-emptydir + mountPath: /usr/share/opensearch/config/opensearch.yml + subPath: opensearch.yml --- # Source: opentelemetry-demo/charts/grafana/templates/tests/test-serviceaccount.yaml apiVersion: v1