nfs provisioner
Less than 1 minute
nfs provisioner
prepare
- k8s is ready
- argocd is ready and logged in
- nfsv4 server is ready
- nfs server: nfs.services.geekcity.tech
installation
- prepare
nfs-provisioner.yaml
apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: nfs-provisioner spec: syncPolicy: syncOptions: - CreateNamespace=true project: default source: repoURL: https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner chart: nfs-subdir-external-provisioner targetRevision: 4.0.18 helm: releaseName: nfs-provisioner values: | image: repository: registry.k8s.io/sig-storage/nfs-subdir-external-provisioner pullPolicy: IfNotPresent nfs: server: nfs.services.geekcity.tech path: / mountOptions: storageClass: create: true defaultClass: true name: nfs-external destination: server: https://kubernetes.default.svc namespace: basic-components
- apply to k8s
kubectl -n argocd apply -f nfs-provisioner.yaml
- sync by argocd
argocd app sync argocd/nfs-provisioner
- check storage class
kubectl get sc
references
- https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner
- https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner/blob/master/charts/nfs-subdir-external-provisioner/README.md