{{/* Aspire Dashboard — OTLP 遥测数据接收端 所有后端的 OTEL_EXPORTER_OTLP_ENDPOINT 指向这里的 :18889 也是可视化日志/追踪/指标的 Web 界面(:18888) */}} --- apiVersion: apps/v1 kind: Deployment metadata: name: k8s-dashboard-deployment labels: app.kubernetes.io/name: mixingx app.kubernetes.io/component: k8s-dashboard spec: replicas: 1 selector: matchLabels: app.kubernetes.io/component: k8s-dashboard template: metadata: labels: app.kubernetes.io/component: k8s-dashboard spec: containers: - name: k8s-dashboard image: mcr.microsoft.com/dotnet/nightly/aspire-dashboard:latest imagePullPolicy: IfNotPresent ports: - name: http containerPort: 18888 protocol: TCP - name: otlp-grpc containerPort: 18889 protocol: TCP - name: otlp-http containerPort: 18890 protocol: TCP # Dashboard 无状态,数据在内存(重启清空,不影响业务) resources: requests: memory: 256Mi limits: memory: 512Mi --- apiVersion: v1 kind: Service metadata: name: k8s-dashboard-service labels: app.kubernetes.io/name: mixingx app.kubernetes.io/component: k8s-dashboard spec: selector: app.kubernetes.io/component: k8s-dashboard ports: - name: http port: 18888 targetPort: http protocol: TCP - name: otlp-grpc port: 18889 targetPort: otlp-grpc protocol: TCP - name: otlp-http port: 18890 targetPort: otlp-http protocol: TCP