From c40de8839565e2b6a87d7b38253c5eb51eef5c6f Mon Sep 17 00:00:00 2001 From: sjshenjian Date: Mon, 2 Dec 2024 17:46:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EOPEN=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deliverables/k8s/fangjia-open.yaml | 33 +++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/deliverables/k8s/fangjia-open.yaml b/deliverables/k8s/fangjia-open.yaml index 32ce4bb75..09660e137 100644 --- a/deliverables/k8s/fangjia-open.yaml +++ b/deliverables/k8s/fangjia-open.yaml @@ -1,4 +1,4 @@ -:apiVersion: apps/v1 +apiVersion: apps/v1 kind: Deployment metadata: name: fangjia-open @@ -37,20 +37,39 @@ spec: - containerPort: 8080 name: web protocol: TCP + # readinessProbe: + # httpGet: + # path: /k8s/readiness + # port: web + # initialDelaySeconds: 5 + # periodSeconds: 10 + # livenessProbe: + # httpGet: + # path: /k8s/liveness + # port: web + # initialDelaySeconds: 10 + # periodSeconds: 5 volumeMounts: - name: host-time mountPath: /etc/localtime - - name: nfs + - name: goojiaconfig mountPath: /home/goojia/goojiaconfig volumes: - name: host-time hostPath: path: /etc/localtime - - name: nfs - nfs: - path: /home/nfs_data/goojiaconfig - server: 192.168.0.18 + - name: goojiaconfig + cephfs: + monitors: + - 192.168.0.208:6789 + - 192.168.0.209:6789 + - 192.168.0.210:6789 + user: admin + path: /k8s/goojiaconfig + secretRef: + name: ceph-secret + readOnly: false --- apiVersion: v1 @@ -69,4 +88,4 @@ spec: ports: - port: 8080 targetPort: 8080 - nodePort: 38089 \ No newline at end of file + nodePort: 31088 \ No newline at end of file