From 65309fe423180e8568c0f73239a177d724f33a42 Mon Sep 17 00:00:00 2001 From: chenzhihang <709011834@qq.com> Date: Fri, 14 Feb 2025 16:37:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96management=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/template-yaml/k8s-3nacos.yaml | 2 +- k8s/template-yaml/k8s-7management.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/k8s/template-yaml/k8s-3nacos.yaml b/k8s/template-yaml/k8s-3nacos.yaml index e7db99c0..6b242c2f 100644 --- a/k8s/template-yaml/k8s-3nacos.yaml +++ b/k8s/template-yaml/k8s-3nacos.yaml @@ -38,7 +38,7 @@ spec: - containerPort: 9848 - containerPort: 9849 initContainers: - - name: init-mydb + - name: init-mydb-check image: 172.20.32.187/ci4s/busybox:1.31 command: [ 'sh', '-c', 'nc -zv mysql.argo.svc 3306' ] restartPolicy: Always diff --git a/k8s/template-yaml/k8s-7management.yaml b/k8s/template-yaml/k8s-7management.yaml index edc1c621..80f50756 100644 --- a/k8s/template-yaml/k8s-7management.yaml +++ b/k8s/template-yaml/k8s-7management.yaml @@ -31,6 +31,11 @@ spec: - name: resource-volume hostPath: path: /platform-data + initContainers: + - name: init-fs-check + image: 172.20.32.187/ci4s/busybox:1.31 + command: [ 'sh', '-c', 'if findmnt /platform-data/ | grep 'fuse.juicefs'; then exit 0; else exit 1; fi'] + restartPolicy: Always --- apiVersion: v1 kind: Service