mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 05:02:50 +00:00
Add NFS export/import pod examples.
This commit is contained in:
27
examples/nfs/nfs-web-pod.yaml
Normal file
27
examples/nfs/nfs-web-pod.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
#
|
||||
# This pod imports nfs-server.default.kube.local:/ into /var/www/html
|
||||
#
|
||||
|
||||
apiVersion: v1beta3
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: nfs-web
|
||||
spec:
|
||||
containers:
|
||||
- name: web
|
||||
image: dockerfile/nginx
|
||||
ports:
|
||||
- name: web
|
||||
containerPort: 80
|
||||
protocol: tcp
|
||||
volumeMounts:
|
||||
# name must match the volume name below
|
||||
- name: nfs
|
||||
mountPath: "/var/www/html"
|
||||
volumes:
|
||||
- name: nfs
|
||||
nfs:
|
||||
# FIXME: use the right hostname
|
||||
server: nfs-server.default.kube.local
|
||||
path: "/"
|
||||
readOnly: false
|
Reference in New Issue
Block a user