-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f58fa0
commit 9dab15d
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
## Replace name and image with your desired names and container images | ||
|
||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: nfs-unprivileged | ||
spec: | ||
containers: | ||
- name: unprivileged | ||
image: tag/unprivileged | ||
command: | ||
- "/bin/bash" | ||
- "-c" | ||
- set -euo pipefail; while true; do echo $(date); sleep 1; done | ||
volumeMounts: | ||
- mountPath: /home | ||
name: mountpoint-dir | ||
- mountPath: /run/rpc_pipefs | ||
name: rpc-pipefs | ||
- mountPath: /etc/krb5.keytab | ||
name: keytab | ||
readOnly: true | ||
- mountPath: /tmp | ||
name: tmp | ||
volumes: | ||
- hostPath: | ||
path: /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-123/globalmount | ||
type: DirectoryOrCreate | ||
name: mountpoint-dir | ||
- hostPath: | ||
path: /etc/krb5.keytab | ||
name: keytab | ||
- hostPath: | ||
path: /run/rpc_pipefs | ||
type: DirectoryOrCreate | ||
name: rpc-pipefs | ||
- hostPath: | ||
path: /tmp | ||
type: DirectoryOrCreate | ||
name: tmp |