|
|
|
@@ -14,27 +14,38 @@ 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 |
|
|
|
- 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: resource-volume |
|
|
|
hostPath: |
|
|
|
path: /platform-data |
|
|
|
# initContainers: |
|
|
|
# - name: init-fs-check |
|
|
|
# image: 172.20.32.187/ci4s/busybox:1.31 |
|
|
|
# command: [ 'sh', '-c', "mount | grep /platform-data"] |
|
|
|
- name: resource-volume |
|
|
|
hostPath: |
|
|
|
path: /platform-data |
|
|
|
initContainers: |
|
|
|
- name: init-fs-check |
|
|
|
image: ${k8s-7management-image} |
|
|
|
volumeMounts: |
|
|
|
- name: resource-volume |
|
|
|
mountPath: /home/resource/ |
|
|
|
subPath: mini-model-platform-data |
|
|
|
command: [ "/bin/sh", "-c" ] |
|
|
|
args: |
|
|
|
- | |
|
|
|
mounted=$(findmnt /platform-data/ | grep 'fuse.juicefs') |
|
|
|
if [ -z "$mounted" ]; then |
|
|
|
echo "/platform-data not mounted"; |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
restartPolicy: Always |
|
|
|
--- |
|
|
|
apiVersion: v1 |
|
|
|
|