Skip to content

Instantly share code, notes, and snippets.

@fpytloun
Last active July 25, 2019 15:14
Show Gist options
  • Save fpytloun/afa0ba47d2687dbe1e6da245c65135a1 to your computer and use it in GitHub Desktop.
Save fpytloun/afa0ba47d2687dbe1e6da245c65135a1 to your computer and use it in GitHub Desktop.
Docker kubernetes pod deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations: {}
labels:
app: docker
name: docker
spec:
template:
metadata:
labels:
app: docker
spec:
containers:
- image: docker
name: docker
command:
- /bin/sleep
- "3600"
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-socket
volumes:
- name: docker-socket
hostPath:
path: /var/run/docker.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment