apiVersion: apps/v1
kind: Deployment
metadata:
    namespace: storage
    name: nfs-server
    labels:
        app: nfs-server
spec:
    replicas: 1
    selector:
        matchLabels:
            role: nfs-server
    template:
        metadata:
            labels:
                role: nfs-server
        spec:
            nodeSelector:
                kubernetes.io/hostname: amd64node2.lan
            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
            volumes:
            -   name: nfs-export
                hostPath:
                    path: /mnt/cluster_storage
                    type: ''
