Files
kubernetes/examples/nfs/nfs-web-pod.yaml
Sami Wagiaalla 07f31d31a9 Fix nginx path in nfs pod example.
nginx document root has changed. This updates the document
root in the nfs example.

Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-06-05 16:47:48 -04:00

28 lines
576 B
YAML

#
# 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: nginx
ports:
- name: web
containerPort: 80
protocol: tcp
volumeMounts:
# name must match the volume name below
- name: nfs
mountPath: "/usr/share/nginx/html"
volumes:
- name: nfs
nfs:
# FIXME: use the right hostname
server: nfs-server.default.kube.local
path: "/"
readOnly: false