autocomplete

This commit is contained in:
trigkeyb
2025-01-12 12:18:23 +01:00
parent 6142bd0fad
commit a4577bb70b
4 changed files with 20 additions and 40 deletions

View File

@@ -1,63 +1,31 @@
#!/bin/bash
# Variables
# instala con operator -ok-
curl -O https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/tigera-operator.yaml
curl -O https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/custom-resources.yaml
sed -i 's/192.168.0.0/172.24.0.0/g' custom-resources.yaml
#### curl -O https://raw.githubusercontent.com/projectcalico/calico/v3.28.1/manifests/tigera-operator.yaml
#### curl -O https://raw.githubusercontent.com/projectcalico/calico/v3.28.1/manifests/custom-resources.yaml
#### curl -O https://raw.githubusercontent.com/projectcalico/calico/v3.27.1/manifests/tigera-operator.yaml
####curl -O https://raw.githubusercontent.com/projectcalico/calico/v3.27.1/manifests/custom-resources.yaml
#### curl -O https://raw.githubusercontent.com/projectcalico/calico/v3.26.1/manifests/tigera-operator.yaml
#### curl -O https://raw.githubusercontent.com/projectcalico/calico/v3.26.1/manifests/custom-resources.yaml
kubectl create -f tigera-operator.yaml
kubectl create -f custom-resources.yaml
kubectl get pods -A -w
kubectl get pods -A
### kubectl get pods -A -w
## instala con manifest -deprecated-
# kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/calico.yaml
wget https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/calico.yaml
sed -ie 's/192.168.0.0/172.24.0.0/g' calico.yaml
#### wget https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/calico.yaml
#### sed -ie 's/192.168.0.0/172.24.0.0/g' calico.yaml
# Instalar red de pods (Calico)
echo "Instalando la red de pods (Calico)..."
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/tigera-operator.yaml
curl -O https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/custom-resources.yaml
sed -ie 's/192.168.0.0/172.24.0.0/g' custom-resources.yaml
kubectl create -f custom-resources.yaml
# curl -O https://raw.githubusercontent.com/projectcalico/calico/v3.26.1/manifests/tigera-operator.yaml
# curl -O https://raw.githubusercontent.com/projectcalico/calico/v3.26.1/manifests/custom-resources.yaml
# kubectl create -f tigera-operator.yaml
# kubectl apply -f https://docs.projectcalico.org/v3.25/manifests/calico.yaml
## kubectl get pods --all-namespaces -w

7
5.autocomplete_in_bash.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
echo 'source <(kubectl completion bash)' >>~/.bashrc
# Reload sourcefile again (located on home)
source .bashrc

View File

@@ -1,4 +1,9 @@
# infra_cloudinit
https://pabpereza.notion.site/Install-kubernetes-1-28-on-Ubuntu-Server-20-04-LTS-6f8d28eadb6242f0a78c40eaa0211167
https://www.linuxtechi.com/install-kubernetes-on-ubuntu-24-04/