Descrição do problema
Procedimento de instalação via bash.sh está falhando.
Como reproduzir
Passos para reproduzir o problema:
clona o repositório em seguida validar o arquivo install.sh e rodar.
Comportamento esperado
Instalar o kit k3s, argocd mais alguns itens
Capturas de tela
update-alternatives: using /usr/sbin/arptables-nft to provide /usr/sbin/arptables (arptables) in auto mode
update-alternatives: using /usr/sbin/ebtables-nft to provide /usr/sbin/ebtables (ebtables) in auto mode
Setting up docker-ce (5:29.4.1-1ubuntu.24.04noble) ...
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /usr/lib/systemd/system/docker.socket.
Processing triggers for libc-bin (2.39-0ubuntu8.7) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
....
[INFO] Downloading hash https://github.com/k3s-io/k3s/releases/download/stable/sha256sum-amd64.txt
[ERROR] Download failed
root@devops:/home/devops/infra# export INSTALL_URL=https://raw.githubusercontent.com/${REPO}/refs/heads/${BRANCH}/install.sh
root@devops:/home/devops/infra# curl -s $INSTALL_URL | sudo env INSTALL_URL="$INSTALL_URL" BRANCH="$BRANCH" REPO="$REPO" APPS="$APPS" bash
bash: line 1: a: No such file or directory
root@devops:/home/devops/infra# sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/k3s-config.yaml
cp: cannot stat '/etc/rancher/k3s/k3s.yaml': No such file or directory
root@devops:/home/devops/infra# sudo chown $(id -u):$(id -g) ~/.kube/k3s-config.yaml
chown: cannot access '/root/.kube/k3s-config.yaml': No such file or directory
Ambient:
- OS: Ubuntu-server 24.04.4 LTS
Contexto adicional
Falha na instalação
Descrição do problema
Procedimento de instalação via bash.sh está falhando.
Como reproduzir
Passos para reproduzir o problema:
clona o repositório em seguida validar o arquivo install.sh e rodar.
Comportamento esperado
Instalar o kit k3s, argocd mais alguns itens
Capturas de tela
update-alternatives: using /usr/sbin/arptables-nft to provide /usr/sbin/arptables (arptables) in auto mode
update-alternatives: using /usr/sbin/ebtables-nft to provide /usr/sbin/ebtables (ebtables) in auto mode
Setting up docker-ce (5:29.4.1-1
ubuntu.24.04noble) ...Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /usr/lib/systemd/system/docker.socket.
Processing triggers for libc-bin (2.39-0ubuntu8.7) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.$(id -u):$ (id -g) ~/.kube/k3s-config.yaml
....
[INFO] Downloading hash https://github.com/k3s-io/k3s/releases/download/stable/sha256sum-amd64.txt
[ERROR] Download failed
root@devops:/home/devops/infra# export INSTALL_URL=https://raw.githubusercontent.com/${REPO}/refs/heads/${BRANCH}/install.sh
root@devops:/home/devops/infra# curl -s $INSTALL_URL | sudo env INSTALL_URL="$INSTALL_URL" BRANCH="$BRANCH" REPO="$REPO" APPS="$APPS" bash
bash: line 1: a: No such file or directory
root@devops:/home/devops/infra# sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/k3s-config.yaml
cp: cannot stat '/etc/rancher/k3s/k3s.yaml': No such file or directory
root@devops:/home/devops/infra# sudo chown
chown: cannot access '/root/.kube/k3s-config.yaml': No such file or directory
Ambient:
Contexto adicional
Falha na instalação