Browse Source

Merge branch 'dev' of https://gitlink.org.cn/ci4s/ci4sManagement-cloud into dev

dev-active_learn
somunslotus 11 months ago
parent
commit
5a9a64d484
1 changed files with 25 additions and 19 deletions
  1. +25
    -19
      k8s/template-yaml/k8s-7management.yaml

+ 25
- 19
k8s/template-yaml/k8s-7management.yaml View File

@@ -14,36 +14,42 @@ spec:
app: ci4s-management-platform app: ci4s-management-platform
spec: spec:
containers: containers:
- name: ci4s-management-platform
image: ${k8s-7management-image}
env:
- name: TZ
value: Asia/Shanghai
- name: JAVA_TOOL_OPTIONS
value: "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5005"
ports:
- containerPort: 9213
volumeMounts:
- name: resource-volume
mountPath: /home/resource/
subPath: mini-model-platform-data
volumes:
- name: ci4s-management-platform
image: ${k8s-7management-image}
securityContext:
privileged: true
env:
- name: TZ
value: Asia/Shanghai
- name: JAVA_TOOL_OPTIONS
value: "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5005"
ports:
- containerPort: 9213
volumeMounts:
- name: resource-volume - name: resource-volume
hostPath:
path: /platform-data
mountPath: /home/resource/
subPath: mini-model-platform-data
mountPropagation: Bidirectional
volumes:
- name: resource-volume
hostPath:
path: /platform-data
initContainers: initContainers:
- name: init-fs-check - name: init-fs-check
image: ${k8s-7management-image}
image: 172.20.32.187/ci4s/ci4s-managent:202502141722
securityContext:
privileged: true
volumeMounts: volumeMounts:
- name: resource-volume - name: resource-volume
mountPath: /home/resource/ mountPath: /home/resource/
subPath: mini-model-platform-data subPath: mini-model-platform-data
mountPropagation: Bidirectional
command: [ "/bin/sh", "-c" ] command: [ "/bin/sh", "-c" ]
args: args:
- | - |
mounted=$(findmnt /platform-data/ | grep 'fuse.juicefs')
mounted=$(findmnt /home/resource/ | grep 'fuse.juicefs')
if [ -z "$mounted" ]; then if [ -z "$mounted" ]; then
echo "/platform-data not mounted";
echo "/platform-data not mounted";
exit 1 exit 1
fi fi
restartPolicy: Always restartPolicy: Always


Loading…
Cancel
Save