Created
May 10, 2021 02:59
-
-
Save bliotti/96582d2f5eba01e2cdd7503a0a6a0f60 to your computer and use it in GitHub Desktop.
nfs-deploy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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