This commit is contained in:
Aleksander Cynarski 2022-10-09 19:59:09 +02:00
parent 6ee851f4b1
commit 8a39ecac5c
Signed by: paramah
GPG Key ID: C4340BA42B9C173A
3 changed files with 16 additions and 2 deletions

3
Vagrantfile vendored
View File

@ -7,7 +7,8 @@ require 'ipaddr'
# see https://update.rke2.io/v1-release/channels
rke2_channel = 'latest'
# 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
etcdctl_version = 'v3.5.2'
# see https://github.com/derailed/k9s/releases

View File

@ -35,6 +35,9 @@ cat >/etc/motd <<'EOF'
|___/
EOF
h1 "Install NFS libs"
apt-get install -y nfs-common
h1 "Install rke2 agent"
h2 "Version: ${rke2_version}"
h2 "Server: ${rke2_server_url}"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -x
set -euo pipefail
#
# Helper functions
@ -65,6 +65,16 @@ cluster-dns: 10.13.0.10
cluster-domain: cluster.local
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"
h2 "Version: ${rke2_version}"
# install rke2 server.