mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
test
This commit is contained in:
@@ -17,43 +17,7 @@ msg_info "Installing Dependencies"
|
||||
#$STD apt-get install -y gnup
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Setup K3s"
|
||||
cat <<EOF >/etc/rc.local
|
||||
#!/bin/sh -e
|
||||
if [ ! -e /dev/kmsg ]; then
|
||||
ln -s /dev/console /dev/kmsg
|
||||
fi
|
||||
mount --make-rshared /
|
||||
EOF
|
||||
|
||||
chmod +x /etc/rc.local
|
||||
/etc/rc.local
|
||||
|
||||
curl -sfL https://get.k3s.io | sh -s - --disable=traefik --disable=servicelb --node-name control.k8s
|
||||
|
||||
# Setup kubectl for non-root user access
|
||||
echo 'export KUBECONFIG=~/.kube/config' >>~/.bashrc
|
||||
echo 'source <(kubectl completion bash)' >>~/.bashrc
|
||||
echo 'alias k=kubectl' >>~/.bashrc
|
||||
echo 'complete -o default -F __start_kubectl k' >>~/.bashrc
|
||||
source ~/.bashrc
|
||||
mkdir ~/.kube 2>/dev/null
|
||||
sudo k3s kubectl config view --raw >"$KUBECONFIG"
|
||||
chmod 600 "$KUBECONFIG"
|
||||
# Test to make sure non-root kubectl is working
|
||||
kubectl get nodes
|
||||
|
||||
msg_ok "Setup K3s"
|
||||
|
||||
msg_info "Setup Helm"
|
||||
# Install Helm
|
||||
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg >/dev/null
|
||||
sudo apt-get install apt-transport-https --yes
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
|
||||
sudo apt-get update
|
||||
sudo apt-get install helm
|
||||
helm version
|
||||
msg_ok "Setup Helm"
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
|
||||
#echo -e "fetching healthchecks"
|
||||
#fetch_and_deploy_gh_release "healthchecks" "healthchecks/healthchecks" "tarball" "latest" "/opt/healthchecks"
|
||||
|
||||
Reference in New Issue
Block a user