From 496dab95bad39fa13b3cb94f0bf2c0da94b0d43c Mon Sep 17 00:00:00 2001 From: ws <676889601@qq.com> Date: Mon, 29 Sep 2025 08:56:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E6=89=8B=E5=8A=A8=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E7=9A=84oceanbase=E5=BB=BA=E7=AB=8Bservice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oceanbase/oceanbase-service.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 oceanbase/oceanbase-service.yaml diff --git a/oceanbase/oceanbase-service.yaml b/oceanbase/oceanbase-service.yaml new file mode 100644 index 0000000..b95a980 --- /dev/null +++ b/oceanbase/oceanbase-service.yaml @@ -0,0 +1,21 @@ +apiVersion: v1 +kind: Service +metadata: + name: oceanbase + namespace: default +spec: + ports: + - port: 2881 + targetPort: 2881 +--- +apiVersion: v1 +kind: Endpoints +metadata: + name: oceanbase + namespace: default +subsets: + - addresses: + - ip: 172.16.1.51 # 宿主机的实际 IP + ports: + - port: 2881 +