8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
32 lines
727 B
YAML
32 lines
727 B
YAML
apiVersion: v1
|
|
kind: ReplicationController
|
|
metadata:
|
|
name: nfs-server
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
role: nfs-server
|
|
template:
|
|
metadata:
|
|
labels:
|
|
role: nfs-server
|
|
spec:
|
|
containers:
|
|
- name: nfs-server
|
|
image: gcr.io/google-samples/nfs-server:1.1
|
|
ports:
|
|
- name: nfs
|
|
containerPort: 2049
|
|
- name: mountd
|
|
containerPort: 20048
|
|
- name: rpcbind
|
|
containerPort: 111
|
|
securityContext:
|
|
privileged: true
|
|
volumeMounts:
|
|
- mountPath: /exports
|
|
name: mypvc
|
|
volumes:
|
|
- name: mypvc
|
|
persistentVolumeClaim:
|
|
claimName: nfs-pv-provisioning-demo
|