Created
December 11, 2020 02:05
-
-
Save thospfuller/f8a8d747906365becc18b811888bdc30 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 (note that zero parameters need to be passed when starting Minikube for this to work).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
creationTimestamp: null | |
labels: | |
run: nginx-minimounted | |
name: nginx-minimounted | |
namespace: myns | |
spec: | |
containers: | |
- image: nginx | |
name: nginx-minimounted | |
resources: {} | |
volumeMounts: | |
- mountPath: /etc/minimounted | |
name: minimounted | |
volumes: | |
- name: minimounted | |
hostPath: | |
path: /Users/thospfuller/k8s-study/minimounted | |
dnsPolicy: ClusterFirst | |
restartPolicy: Never | |
status: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment