con IP 172
This commit is contained in:
@@ -6,7 +6,7 @@ USER="curso" # Usuario con acceso sudo
|
||||
|
||||
|
||||
echo "Inicializando el nodo maestro..."
|
||||
sudo kubeadm init --control-plane-endpoint=k8scp --upload-certs --pod-network-cidr=192.168.0.0/16
|
||||
sudo kubeadm init --control-plane-endpoint=k8scp --upload-certs --pod-network-cidr=172.24.0.0/16
|
||||
|
||||
|
||||
# sudo kubeadm init --pod-network-cidr=174.24.0.0/16 --cri-socket=unix:///run/containerd/containerd.sock --upload-certs --control-plane-endpoint=k8scp
|
||||
|
||||
@@ -3,19 +3,25 @@
|
||||
# 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
|
||||
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user