Kubernetes example?
Opened this issue · 1 comments
brandonros commented
kind: Service
apiVersion: v1
metadata:
name: nfs-server
spec:
ports:
- name: nfs
port: 2049
- name: mountd
port: 20048
- name: rpcbind
port: 111
selector:
role: nfs-server
---
apiVersion: v1
kind: ReplicationController
metadata:
name: nfs-server
spec:
replicas: 1
selector:
role: nfs-server
template:
metadata:
labels:
role: nfs-server
spec:
nodeSelector:
external-storage: "true"
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: nfs-export-fast
volumes:
- name: nfs-export-fast
hostPath:
path: /data/nfs
From https://opensource.ncsa.illinois.edu/confluence/display/~lambert8/NFS+in+Kubernetes
Not quite working but, might make sense to test with your image.
kbakk commented
Here is a setup that works for me; note that I'm using Docker Desktop, so some modifications may be needed:
https://gist.github.com/kbakk/097453c445a72e99573a5089c1c3d0dc