Skip to content

Commit

Permalink
k8s nfs
Browse files Browse the repository at this point in the history
  • Loading branch information
hwholiday committed Dec 24, 2021
1 parent bdedba9 commit 600781a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions istio/kube/nfs-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
kind: Pod
apiVersion: v1
metadata:
name: nfs-test
namespace: im
spec:
containers:
- name: nfs-test
image: busybox:1.24
command:
- "/bin/sh"
args:
- "-c"
- "touch /mnt/SUCCESS && exit 0 || exit 1" #创建一个SUCCESS文件后退出
volumeMounts:
- name: nfs-pvc
mountPath: "/mnt"
restartPolicy: "Never"
volumes:
- name: nfs-pvc
persistentVolumeClaim:
claimName: im-nfs #与PVC名称保持一致

0 comments on commit 600781a

Please sign in to comment.