From a4577bb70b0efb5f7d792dac3cd13e51ffbac6a8 Mon Sep 17 00:00:00 2001 From: trigkeyb Date: Sun, 12 Jan 2025 12:18:23 +0100 Subject: [PATCH] autocomplete --- 3.instala_calico.sh | 48 ++++-------------------- 5.autocomplete_in_bash.sh | 7 ++++ 5.borra_cluster.sh => 6.borra_cluster.sh | 0 README.md | 5 +++ 4 files changed, 20 insertions(+), 40 deletions(-) create mode 100755 5.autocomplete_in_bash.sh rename 5.borra_cluster.sh => 6.borra_cluster.sh (100%) diff --git a/3.instala_calico.sh b/3.instala_calico.sh index 5c163d6..9b03684 100755 --- a/3.instala_calico.sh +++ b/3.instala_calico.sh @@ -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 diff --git a/5.autocomplete_in_bash.sh b/5.autocomplete_in_bash.sh new file mode 100755 index 0000000..b3d040a --- /dev/null +++ b/5.autocomplete_in_bash.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +echo 'source <(kubectl completion bash)' >>~/.bashrc + +# Reload sourcefile again (located on home) +source .bashrc + diff --git a/5.borra_cluster.sh b/6.borra_cluster.sh similarity index 100% rename from 5.borra_cluster.sh rename to 6.borra_cluster.sh diff --git a/README.md b/README.md index b6ee955..e314064 100644 --- a/README.md +++ b/README.md @@ -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/ + +