mirror of
https://code.forgejo.org/infrastructure/documentation
synced 2024-11-25 20:11:11 +00:00
Allocate a dedicated IP to NFS server
So that it can be moved around from one machine to another.
This commit is contained in:
parent
20b07cacbd
commit
7957c93471
|
@ -1004,7 +1004,7 @@ spec:
|
||||||
repo: https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner
|
repo: https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner
|
||||||
targetNamespace: default
|
targetNamespace: default
|
||||||
set:
|
set:
|
||||||
nfs.server: 10.53.101.5
|
nfs.server: 10.53.101.100
|
||||||
nfs.path: /k8s
|
nfs.path: /k8s
|
||||||
storageClass.name: nfs
|
storageClass.name: nfs
|
||||||
$ kubectl apply --server-side=true -f nfs.yml
|
$ kubectl apply --server-side=true -f nfs.yml
|
||||||
|
@ -1033,7 +1033,7 @@ spec:
|
||||||
capacity:
|
capacity:
|
||||||
storage: 20Gi
|
storage: 20Gi
|
||||||
nfs:
|
nfs:
|
||||||
server: 10.53.101.5
|
server: 10.53.101.100
|
||||||
path: /k8s/forgejo-data
|
path: /k8s/forgejo-data
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
|
|
Loading…
Reference in a new issue