From 30ae9a178ddac5d41df5e9b03f17e8a5da124ccd Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Wed, 22 Jan 2025 11:46:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20Jaeger=20=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E5=92=8C=E6=9C=8D=E5=8A=A1=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 Jaeger 部署配置文件,使用 jaegertracing/all-in-one:latest 镜像 - 添加 Jaeger 服务配置文件,暴露 16686、4317 和 4318 端口 --- templates/jaeger-deployment.yaml | 27 +++++++++++++++++++++++++++ templates/jaeger-service.yaml | 19 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 templates/jaeger-deployment.yaml create mode 100644 templates/jaeger-service.yaml diff --git a/templates/jaeger-deployment.yaml b/templates/jaeger-deployment.yaml new file mode 100644 index 0000000..b58187c --- /dev/null +++ b/templates/jaeger-deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: jaeger + name: jaeger +spec: + replicas: 1 + selector: + matchLabels: + app: jaeger + template: + metadata: + labels: + app: jaeger + spec: + containers: + - image: jaegertracing/all-in-one:latest + name: jaeger + ports: + - containerPort: 16686 + protocol: TCP + - containerPort: 4317 + protocol: TCP + - containerPort: 4318 + protocol: TCP + restartPolicy: Always diff --git a/templates/jaeger-service.yaml b/templates/jaeger-service.yaml new file mode 100644 index 0000000..aaa7d04 --- /dev/null +++ b/templates/jaeger-service.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: jaeger + name: jaeger +spec: + ports: + - name: "16686" + port: 16686 + targetPort: 16686 + - name: "4317" + port: 4317 + targetPort: 4317 + - name: "4318" + port: 4318 + targetPort: 4318 + selector: + app: jaeger