Commit d29cbaca authored by Piotr Szlenk's avatar Piotr Szlenk

Fix missing interfaces on switches

parent 7f46729b
......@@ -25,6 +25,7 @@ bridges:
ports:
- swp3
- swp4
- swp5
bgp:
as: 65101
......
......@@ -24,7 +24,8 @@ bridges:
ospf_passive: true
ports:
- swp3
- swp4
- swp5
bgp:
as: 65102
......
#!/bin/sh
cd cumulus-ip-fabric && source VENV/bin/activate
pip install -r requirements.txt
ansible-playbook site.yml -i inventory/ipfabric_vagrant
\ No newline at end of file
#!/bin/sh
HOSTS='k8s-node-l1-1 k8s-node-l1-2 k8s-node-l2-1 k8s-node-l2-2'
for i in $HOSTS; do
vagrant ssh $i -c "sudo kubeadm join 10.255.1.10:6443 --token $1 --discovery-token-ca-cert-hash $2"
done
......@@ -10,13 +10,22 @@ for i in $HOSTS; do
done
#vagrant ssh k8s-master-l1-1 -c 'sudo sh k8s-provisioning/05_kubeadm-init.sh'
vagrant ssh k8s-master-l1-1 -c 'sudo sh k8s-provisioning/05_kubeadm-init.sh'
#kubectl apply -f calicoctl.yaml
#kubectl apply -f calico.yaml
#!/bin/sh
vagrant ssh k8s-master-l1-1 -c "mkdir -p \$HOME/.kube"
vagrant ssh k8s-master-l1-1 -c "sudo cp -i /etc/kubernetes/admin.conf \$HOME/.kube/config"
vagrant ssh k8s-master-l1-1 -c "sudo chown \$(id -u):\$(id -g) \$HOME/.kube/config"
vagrant ssh k8s-master-l1-1 -c "kubectl label nodes k8s-master-l1-1 'asnum=65101'"
vagrant ssh k8s-master-l1-1 -c "kubectl label nodes k8s-node-l1-1 'asnum=65101'"
vagrant ssh k8s-master-l1-1 -c "kubectl label nodes k8s-node-l1-2 'asnum=65101'"
vagrant ssh k8s-master-l1-1 -c "kubectl label nodes k8s-node-l2-1 'asnum=65102'"
vagrant ssh k8s-master-l1-1 -c "kubectl label nodes k8s-node-l2-2 'asnum=65102'"
vagrant ssh k8s-master-l1-1 -c "kubectl apply -f calico/calicoctl.yaml"
vagrant ssh k8s-master-l1-1 -c "kubectl apply -f calico/calico.yaml"
#kubectl exec -ti -n kube-system calicoctl -- calicoctl create -f - < calico.nodes.yaml
#kubectl exec -ti -n kube-system calicoctl -- calicoctl create -f - < calico.nodes.yaml
vagrant ssh k8s-master-l1-1 -c "kubectl exec -i -n kube-system calicoctl -- calicoctl create -f - < calico/calico.nodes.yaml"
vagrant ssh k8s-master-l1-1 -c "kubectl exec -i -n kube-system calicoctl -- calicoctl create -f - < calico/calico.bgpconfig.yaml"
#alias calicoctl="kubectl exec -i -n kube-system calicoctl /calicoctl -- "
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment