|
|
|
@@ -14,36 +14,42 @@ spec: |
|
|
|
app: ci4s-management-platform |
|
|
|
spec: |
|
|
|
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 |
|
|
|
hostPath: |
|
|
|
path: /platform-data |
|
|
|
mountPath: /home/resource/ |
|
|
|
subPath: mini-model-platform-data |
|
|
|
mountPropagation: Bidirectional |
|
|
|
volumes: |
|
|
|
- name: resource-volume |
|
|
|
hostPath: |
|
|
|
path: /platform-data |
|
|
|
initContainers: |
|
|
|
- name: init-fs-check |
|
|
|
image: ${k8s-7management-image} |
|
|
|
image: 172.20.32.187/ci4s/ci4s-managent:202502141722 |
|
|
|
securityContext: |
|
|
|
privileged: true |
|
|
|
volumeMounts: |
|
|
|
- name: resource-volume |
|
|
|
mountPath: /home/resource/ |
|
|
|
subPath: mini-model-platform-data |
|
|
|
mountPropagation: Bidirectional |
|
|
|
command: [ "/bin/sh", "-c" ] |
|
|
|
args: |
|
|
|
- | |
|
|
|
mounted=$(findmnt /platform-data/ | grep 'fuse.juicefs') |
|
|
|
mounted=$(findmnt /home/resource/ | grep 'fuse.juicefs') |
|
|
|
if [ -z "$mounted" ]; then |
|
|
|
echo "/platform-data not mounted"; |
|
|
|
echo "/platform-data not mounted"; |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
restartPolicy: Always |
|
|
|
|