You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.2 KiB

apiVersion: "v1"
kind: "Pod"
metadata:
name: "test"
spec:
containers:
- args:
- "-c"
- "sleep 999999999999999"
command:
- "sh"
image: "docker.io/library/docker-kind:v0.0.1"
imagePullPolicy: "Never"
name: "docker-kind"
resources: {}
securityContext:
privileged: false
tty: true
volumeMounts:
- mountPath: /var/run/
name: dind-socket
- mountPath: /lib/modules
name: modules
readOnly: true
- mountPath: /sys/fs/cgroup
name: cgroup
- image: "docker.io/library/docker:18.05-dind"
imagePullPolicy: "Never"
name: "dockerd"
args:
- "--insecure-registry"
- "kind-registry:5000"
securityContext:
privileged: true
volumeMounts:
- mountPath: /var/lib/docker
name: dind-storage
- mountPath: /var/run/
name: dind-socket
readOnly: false
restartPolicy: "Always"
securityContext: {}
volumes:
- name: dind-storage
emptyDir: {}
- name: dind-socket
emptyDir: {}
- name: modules
hostPath:
path: /lib/modules
type: Directory
- name: cgroup
hostPath:
path: /sys/fs/cgroup
type: Directory