Skip to content

Instantly share code, notes, and snippets.

@thospfuller
Last active December 11, 2020 02:03
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 thospfuller/b36e4b4b9dd2bb41e3a4a00f4cfd8c15 to your computer and use it in GitHub Desktop.
Save thospfuller/b36e4b4b9dd2bb41e3a4a00f4cfd8c15 to your computer and use it in GitHub Desktop.
An Nginx pod with the local /etc/minimount directory mounted as /etc/minimount to be run in Minikube (you must start Minikube with --mount and --mount-string set for this to work).
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: nginx-minimounted
name: nginx-minimounted
namespace: myns
spec:
volumes:
- name: minimounted
hostPath:
path: /minimounted/
type: DirectoryOrCreate
containers:
- image: nginx
name: nginx-minimounted
resources: {}
volumeMounts:
- mountPath: /etc/minimounted
name: minimounted
dnsPolicy: ClusterFirst
restartPolicy: Never
status: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment