mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-24 14:00:19 +00:00
33 lines
727 B
YAML
33 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
|