forked from ci4s/pipeline-convert
24 lines
536 B
YAML
24 lines
536 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: juicefs-app-hostpath
|
|
namespace: default
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/hostname: k8s-master
|
|
containers:
|
|
- args:
|
|
- -c
|
|
- while true; do echo $(date -u) >> /data/222out.txt; sleep 5; done
|
|
command:
|
|
- /bin/sh
|
|
image: nginx:latest
|
|
imagePullPolicy: IfNotPresent
|
|
name: app
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: juicefs-hostpath
|
|
volumes:
|
|
- name: juicefs-hostpath
|
|
hostPath:
|
|
path: /platform-data |