新增OPEN测试环境发布

This commit is contained in:
sjshenjian
2024-12-02 17:46:51 +08:00
parent 29210bd5fc
commit c40de88395
+26 -7
View File
@@ -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
nodePort: 31088