Linux

Usar o Putty para acesso ssh

ip r visualiza os ipv4 e ip a visualiza os ipv6

apt-get update #atualiza
apt-get install -y apt-transport-https
apt-get install docker.io
systemctl start docker
systemctl enable docker
apt-get install curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg| apt-key add
chmod 777 /etc/apt/sources.list.d/
nano /etc/apt/sources.list.d/kubernetes.list Incluir deb https://apt.kubernetes.io/ kubernetes-xenial main
apt-get install -y kubelet kubeadm kubectl kubernetes-cni
swapoff -a
kubeadm init

Se der erro

    systemctl stop kubelet.service
    kubeadm reset
    kubeadm init

kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kos-manifests/kube-flannel-rbac.yml

Instalação do Kind / Ver instruções no site

echo "source <(kind completion zsh)" >> ~/.bashrc #Acrecenta na lista de auto completar do terminal
kind create cluster --name rabbit --config=kind.yaml #Cria um cluster a partir de um arquivo de manifesto
kubectl apply -f rabbitmq.yaml #Sobe um arquivo de manifesto para criar os contêineres e pods
kubectl get nodes #Lista os nós
kubectl get all #Lista todos os pods
kubectl port-forward service/rabbitmq-service 15672 --address='0.0.0.0' #Encaminha a porta externa para o container, independente do ip

Copiar arquivo entre servidores
scp -r root@10.20.1.211:/var/lib/vz/dump/vzdump-lxc-102-2024_08_30-15_04_02.tar.zst /var/lib/vz/dump/

Habilitar acesso root ssh
nano /etc/ssh/sshd_config
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes