Skip to content

Instantly share code, notes, and snippets.

@nilesh93
Created July 30, 2018 14:49
Show Gist options
  • Save nilesh93/375a59b93cc6e1f41df373cdd4914db7 to your computer and use it in GitHub Desktop.
Save nilesh93/375a59b93cc6e1f41df373cdd4914db7 to your computer and use it in GitHub Desktop.
Kubernetes NFS Server 001
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nfs-server
spec:
replicas: 1
selector:
matchLabels:
role: nfs-server
template:
metadata:
labels:
role: nfs-server
spec:
containers:
- name: nfs-server
image: gcr.io/google_containers/volume-nfs:0.8
ports:
- name: nfs
containerPort: 2049
- name: mountd
containerPort: 20048
- name: rpcbind
containerPort: 111
securityContext:
privileged: true
volumeMounts:
- mountPath: /exports
name: mypvc
volumes:
- name: mypvc
gcePersistentDisk:
pdName: gce-nfs-disk
fsType: ext4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment