Advertisement
Guest User

add-user.pod.yml

a guest
Apr 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.42 KB | None | 0 0
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4.   name: add-user
  5. spec:
  6.   containers:
  7.   - name: doit
  8.     image: busybox:latest
  9.     command:
  10.    - chroot
  11.     - /mnt
  12.     - /usr/sbin/useradd
  13.     - my-username
  14.     securityContext:
  15.       privileged: true
  16.     volumeMounts:
  17.     - name: host
  18.       mountPath: /mnt
  19.   hostIPC: true
  20.   hostPID: true
  21.   restartPolicy: Never
  22.   volumes:
  23.   - name: host
  24.     hostPath:
  25.       path: /
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement