Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: v1
- kind: Pod
- metadata:
- labels:
- run: foo
- name: foo
- namespace: default
- spec:
- containers:
- - args:
- - /bin/bash
- image: centos
- imagePullPolicy: IfNotPresent
- name: foo
- resources: {}
- securityContext:
- privileged: true
- stdin: true
- stdinOnce: true
- terminationMessagePath: /dev/termination-log
- terminationMessagePolicy: File
- tty: true
- volumeMounts:
- - mountPath: /chroot
- name: chroot
- - mountPath: /run
- name: run
- - mountPath: /var/log
- name: varlog
- dnsPolicy: ClusterFirst
- nodeSelector:
- node-role.kubernetes.io/compute: "true"
- priority: 0
- restartPolicy: Never
- schedulerName: default-scheduler
- securityContext:
- privileged: true
- serviceAccount: default
- serviceAccountName: default
- volumes:
- - name: chroot
- hostPath:
- # directory location on host
- path: /
- # this field is optional
- type: Directory
- - name: run
- hostPath:
- path: /run
- - name: varlog
- hostPath:
- path: /var/log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement