Update README.md
This commit is contained in:
1 parent
bd7b0dc727
commit
4620f4d44b
1 file changed
+30
-2
@@ -53,7 +53,9 @@ Use code with caution.
|
||||
$ vi /etc/chrony/chrony.conf
|
||||
#pool pool.ntp.org iburst
|
||||
server 192.168.122.1 iburst
|
||||
$ /etc/init.d/chronyd start|restart
|
||||
$ rc-update add chronyd default
|
||||
$ rc-service chronyd start
|
||||
$ rc-service chronyd status
|
||||
```
|
||||
|
||||
**verify**
|
||||
@@ -101,5 +103,31 @@ $ apk add iptables
|
||||
$ curl -sfL https://get.k3s.io | sh -
|
||||
```
|
||||
|
||||
**install k3s on agent/worker node**
|
||||
```
|
||||
curl -sfL https://get.k3s.io | K3S_URL=https://192.168.122.51:6443 K3S_TOKEN=K10514e27dc751663b798dd9ef0adcb26f68766bebcb2dc1b2af9a669b0595b4373::server:ea26f9838b3a4c3f1089497005ca2a2b sh -
|
||||
```
|
||||
|
||||
|
||||
## Step 5: NFS
|
||||
install nfs on ubuntu
|
||||
export the folder
|
||||
**install nfs client on k3s server and agent node**
|
||||
```
|
||||
apk update
|
||||
apk add nfs-utils
|
||||
rc-update add nfsmount
|
||||
rc-service nfsmount start
|
||||
```
|
||||
**install helm**
|
||||
ref: https://helm.sh/docs/intro/install/
|
||||
```
|
||||
helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
|
||||
helm repo update
|
||||
helm install nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \
|
||||
--create-namespace \
|
||||
--namespace nfs-provisioner \
|
||||
--set nfs.server=192.168.122.1 \
|
||||
--set nfs.path=/data/persist \
|
||||
--set storageClass.name=nfs-client \
|
||||
--set storageClass.defaultClass=true
|
||||
```
|
||||
Reference in new issue
Block a user