58 lines
1.5 KiB
Bash
Executable File
58 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Variables
|
|
|
|
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
|
|
|
|
#### 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 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|