| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- # NOTE: rpcbind on a proxmox host conflicts with this container. Not using for now.
- #---
- #apiVersion: v1
- #kind: Namespace
- #metadata:
- # name: nfs
- #---
- #apiVersion: apps/v1
- #kind: Deployment
- #metadata:
- # name: nfs-seedbox
- # namespace: nfs
- #spec:
- # strategy:
- # type: Recreate
- # selector:
- # matchLabels:
- # app: nfs-seedbox
- # replicas: 1
- # template:
- # metadata:
- # labels:
- # app: nfs-seedbox
- # annotations:
- # backup.velero.io/backup-volumes-excludes: data
- # spec:
- # affinity:
- # nodeAffinity:
- # requiredDuringSchedulingIgnoredDuringExecution:
- # nodeSelectorTerms:
- # - matchExpressions:
- # - key: seedbox
- # operator: In
- # values:
- # - "true"
- # tolerations:
- # - key: seedbox
- # operator: Equal
- # value: "true"
- # effect: NoSchedule
- # hostNetwork: true
- # containers:
- # - name: nfs
- # image: erichough/nfs-server:2.2.1
- # ports:
- # - containerPort: 2049
- # name: nfs
- # securityContext:
- # privileged: true
- # volumeMounts:
- # - mountPath: "/data"
- # name: data
- # - mountPath: /etc/exports
- # name: exports
- # subPath: exports
- # readOnly: true
- # volumes:
- # - name: data
- # hostPath:
- # path: /seedbox
- # type: Directory
- # - name: exports
- # configMap:
- # name: seedbox-nfs-exports
- # items:
- # - key: exports
- # path: exports
- #---
- #apiVersion: v1
- #kind: ConfigMap
- #metadata:
- # name: seedbox-nfs-exports
- # namespace: nfs
- #data:
- # exports: |
- # /seedbox 127.0.0.1(rw) 172.16.69.30(rw) 172.16.69.31(rw) 172.16.69.32(rw) 172.16.69.253(rw) 10.42.0.0/16(rw)
- # Testing NFS access from within a pod
- # ---
- # apiVersion: v1
- # kind: Pod
- # metadata:
- # name: test-pd-2
- # namespace: nfs
- # spec:
- # containers:
- # - image: nginx:1.25.1
- # name: test-container
- # volumeMounts:
- # - mountPath: /my-nfs-data
- # name: test-volume
- # volumes:
- # - name: test-volume
- # nfs:
- # server: 172.16.69.253
- # path: /seedbox
|