nfs
This commit is contained in:
parent
6ee851f4b1
commit
8a39ecac5c
3
Vagrantfile
vendored
3
Vagrantfile
vendored
@ -7,7 +7,8 @@ require 'ipaddr'
|
|||||||
# see https://update.rke2.io/v1-release/channels
|
# see https://update.rke2.io/v1-release/channels
|
||||||
rke2_channel = 'latest'
|
rke2_channel = 'latest'
|
||||||
# see https://github.com/rancher/rke2/releases
|
# see https://github.com/rancher/rke2/releases
|
||||||
rke2_version = 'v1.23.4+rke2r1'
|
#rke2_version = 'v1.23.4+rke2r1'
|
||||||
|
rke2_version = 'v1.25.2+rke2r1'
|
||||||
# see https://github.com/etcd-io/etcd/releases
|
# see https://github.com/etcd-io/etcd/releases
|
||||||
etcdctl_version = 'v3.5.2'
|
etcdctl_version = 'v3.5.2'
|
||||||
# see https://github.com/derailed/k9s/releases
|
# see https://github.com/derailed/k9s/releases
|
||||||
|
@ -35,6 +35,9 @@ cat >/etc/motd <<'EOF'
|
|||||||
|___/
|
|___/
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
h1 "Install NFS libs"
|
||||||
|
apt-get install -y nfs-common
|
||||||
|
|
||||||
h1 "Install rke2 agent"
|
h1 "Install rke2 agent"
|
||||||
h2 "Version: ${rke2_version}"
|
h2 "Version: ${rke2_version}"
|
||||||
h2 "Server: ${rke2_server_url}"
|
h2 "Server: ${rke2_server_url}"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash -x
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
#
|
#
|
||||||
# Helper functions
|
# Helper functions
|
||||||
@ -65,6 +65,16 @@ cluster-dns: 10.13.0.10
|
|||||||
cluster-domain: cluster.local
|
cluster-domain: cluster.local
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
h1 "Install NFS"
|
||||||
|
apt-get install -y nfs-common
|
||||||
|
mkdir /data
|
||||||
|
chmod -cR 777 /
|
||||||
|
cat << EOF >> /etc/exports
|
||||||
|
/data ${ip_address}(rw,no_subtree_check,no_root_squash)
|
||||||
|
EOF
|
||||||
|
systemctl enable --now nfs-server
|
||||||
|
exportfs -ar
|
||||||
|
|
||||||
h1 "Install rke2 server"
|
h1 "Install rke2 server"
|
||||||
h2 "Version: ${rke2_version}"
|
h2 "Version: ${rke2_version}"
|
||||||
# install rke2 server.
|
# install rke2 server.
|
||||||
|
Loading…
Reference in New Issue
Block a user