diff --git a/internal/referenceapp/prometheus-mtls-ref-app.yaml b/internal/referenceapp/prometheus-mtls-ref-app.yaml index 0275ef9c5..ac5143a24 100644 --- a/internal/referenceapp/prometheus-mtls-ref-app.yaml +++ b/internal/referenceapp/prometheus-mtls-ref-app.yaml @@ -11,6 +11,7 @@ spec: labels: app: prometheus-reference-app spec: + hostNetwork: true containers: - name: prometheus-reference-app-golang image: mcr.microsoft.com/azuremonitor/containerinsights/cidev/prometheus-collector/images:6.8.1-testTLS-11-10-2023-afd40f4c-ref-app-golang @@ -23,14 +24,16 @@ spec: value: "125000" ports: - containerPort: 2112 + hostPort: 2112 protocol: TCP name: "weather-app" - containerPort: 2113 + hostPort: 2113 protocol: TCP name: "untyped-metrics" nodeSelector: kubernetes.io/os: linux - architecture: amd64 + kubernetes.io/arch: amd64 --- apiVersion: v1 kind: Service diff --git a/otelcollector/deploy/addon-chart/azure-monitor-metrics-addon/templates/ama-metrics-targetallocator.yaml b/otelcollector/deploy/addon-chart/azure-monitor-metrics-addon/templates/ama-metrics-targetallocator.yaml index d61c22343..739edd612 100644 --- a/otelcollector/deploy/addon-chart/azure-monitor-metrics-addon/templates/ama-metrics-targetallocator.yaml +++ b/otelcollector/deploy/addon-chart/azure-monitor-metrics-addon/templates/ama-metrics-targetallocator.yaml @@ -146,6 +146,9 @@ spec: - mountPath: /etc/config/settings name: settings-vol-config readOnly: true + - mountPath: /etc/prometheus/certs + name: ama-metrics-tls-secret-volume + readOnly: true - mountPath: /etc/config/settings/prometheus name: prometheus-config-vol readOnly: true @@ -239,6 +242,10 @@ spec: configMap: name: ama-metrics-prometheus-config optional: true + - name: ama-metrics-tls-secret-volume + secret: + secretName: ama-metrics-mtls-secret + optional: true - name: ta-config-shared emptyDir: {} {{- end }}