Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: v1
- kind: Pod
- metadata:
- name: add-user
- spec:
- containers:
- - name: doit
- image: busybox:latest
- command:
- - chroot
- - /mnt
- - /usr/sbin/useradd
- - my-username
- securityContext:
- privileged: true
- volumeMounts:
- - name: host
- mountPath: /mnt
- hostIPC: true
- hostPID: true
- restartPolicy: Never
- volumes:
- - name: host
- hostPath:
- path: /
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement