2015-04-02 08:47:21 +00:00
|
|
|
#
|
2015-06-12 17:58:44 +00:00
|
|
|
# This pod imports nfs-server.default.kube.local:/ into /usr/share/nginx/html
|
2015-04-02 08:47:21 +00:00
|
|
|
#
|
|
|
|
|
2015-06-10 23:00:20 +00:00
|
|
|
apiVersion: v1
|
2015-04-02 08:47:21 +00:00
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: nfs-web
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: web
|
2015-04-16 16:11:47 +00:00
|
|
|
image: nginx
|
2015-04-02 08:47:21 +00:00
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
containerPort: 80
|
|
|
|
volumeMounts:
|
|
|
|
# name must match the volume name below
|
|
|
|
- name: nfs
|
2015-06-05 20:47:45 +00:00
|
|
|
mountPath: "/usr/share/nginx/html"
|
2015-04-02 08:47:21 +00:00
|
|
|
volumes:
|
|
|
|
- name: nfs
|
|
|
|
nfs:
|
|
|
|
# FIXME: use the right hostname
|
|
|
|
server: nfs-server.default.kube.local
|
|
|
|
path: "/"
|