Skip to content

Instantly share code, notes, and snippets.

@shrinandj
Created August 28, 2017 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrinandj/c7d6520c206b031dea3962df14cc577a to your computer and use it in GitHub Desktop.
Save shrinandj/c7d6520c206b031dea3962df14cc577a to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: dind
spec:
containers:
- name: docker-cmds
image: docker:1.12.6
command: ['docker', 'run', '-p', '80:80', 'httpd:latest']
resources:
requests:
cpu: 10m
memory: 256Mi
env:
- name: DOCKER_HOST
value: tcp://localhost:2375
- name: dind-daemon
image: docker:1.12.6-dind
resources:
requests:
cpu: 20m
memory: 512Mi
securityContext:
privileged: true
volumeMounts:
- name: docker-graph-storage
mountPath: /var/lib/docker
volumes:
- name: docker-graph-storage
flexVolume:
driver: "ax/vol_plugin"
fsType: "ext4"
options:
size_mb: "10240"
ax_vol_type: "ax-docker-graph-storage"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment