Skip to content

Instantly share code, notes, and snippets.

@srleyva
Created April 6, 2018 13:25
Show Gist options
  • Save srleyva/47e225a5d11c1296bd7022c874b41b36 to your computer and use it in GitHub Desktop.
Save srleyva/47e225a5d11c1296bd7022c874b41b36 to your computer and use it in GitHub Desktop.
Mount Directories in k8s for debugging
apiVersion: v1
kind: Pod
metadata:
name: test-ebs
spec:
containers:
- image: nginx
name: test-container
volumeMounts:
- mountPath: /test/var/
name: test-volume
volumes:
- name: test-volume
hostPath:
path: /var/
@srleyva
Copy link
Author

srleyva commented Apr 6, 2018

Run kubectl exec -it test-ebs -- /bin/bash to then ssh into container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment