Add Helm autoyast and fix token issues (by requiring manual entry for

now. :/)
master
Jason Spadaro 3 months ago
parent 2b75825621
commit ee6c4c1d13

@ -0,0 +1,25 @@
<?xml version="1.0" ?>
<!DOCTYPE profile>
<profile
xmlns="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://www.suse.com/1.0/configns"
>
<scripts>
<post-scripts config:type="list">
<script>
<source>
<![CDATA[
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
/var/lib/rancher/rke2/bin/kubectl apply --kubeconfig /etc/rancher/rke2/rke2.yaml -f https://github.com/cert-manager/cert-manager/releases/download/v1.18.2/cert-manager.crds.yaml
helm --kubeconfig /etc/rancher/rke2/rke2.yaml repo add jetstack https://charts.jetstack.io
helm --kubeconfig /etc/rancher/rke2/rke2.yaml repo update
helm --kubeconfig /etc/rancher/rke2/rke2.yaml install cert-manager jetstack/cert-manager \
--namespace cert-manager \
--create-namespace
]]></source>
</script>
</post-scripts>
</scripts>
</profile>

@ -12,8 +12,6 @@
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="agent" sh -
systemctl enable rke2-agent.service
mkdir -p /etc/rancher/rke2/
echo 'server: https://192.168.0.209:9345'>/etc/rancher/rke2/config.yaml
echo 'token: K10f976796234462230609b41988c7329e94eb5eef11e9b5d30d5226b7271c8abda::server:ef444267bb8c7973b5d016cba8bb2df5'>>/etc/rancher/rke2/config.yaml
systemctl start rke2-agent.service
]]></source>
</script>

@ -5,16 +5,11 @@
xmlns:config="http://www.suse.com/1.0/configns"
>
<scripts>
<networking>
<dns>
<hostname>rke2server</hostname>
</dns>
</networking>
<post-scripts config:type="list">
<script>
<source>
<![CDATA[
export RKE2_TOKEN='Awesome token'
hostname rke2server
curl -sfL https://get.rke2.io | sh -
systemctl enable rke2-server
systemctl start rke2-server

Loading…
Cancel
Save

Powered by TurnKey Linux.