Skip to content

Instantly share code, notes, and snippets.

@bliotti
Created May 10, 2021 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bliotti/96582d2f5eba01e2cdd7503a0a6a0f60 to your computer and use it in GitHub Desktop.
Save bliotti/96582d2f5eba01e2cdd7503a0a6a0f60 to your computer and use it in GitHub Desktop.
nfs-deploy.yaml
apiVersion: apps/v1
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
# image: cloudgenius/nfs-server:4.1 # also works - last known good
image: cloudgenius/nfs-server:8
# image: gcr.io/prod-186723/github-beacloudgenius-nfs-server:a125be62707826957de9f7012be4b213b9c0e2ea
imagePullPolicy: Always
resources:
requests:
cpu: "100m"
memory: "1Gi"
limits:
cpu: "100m"
memory: "1Gi"
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: nfsdisk
# pdName: nfsdisk
fsType: ext4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment