github.com/cilium/cilium@v1.16.2/test/vtep/install.sh (about) 1 #!/usr/bin/env bash 2 # SPDX-License-Identifier: Apache-2.0 3 # Copyright Authors of Cilium 4 5 #Please refer https://docs.cilium.io/en/stable/installation/kind/ 6 7 # 1 create kind cluster 8 kind create cluster --config=kind-cluster.yaml 9 10 # 2 install cilium 11 12 helm repo add cilium https://helm.cilium.io/ 13 14 # docker pull the image and load in kind 15 docker pull cilium/cilium:<cilium version> 16 kind load docker-image cilium/cilium:<cilium version> 17 18 helm install cilium cilium/cilium --version <cilium version> \ 19 --namespace kube-system \ 20 --set vtep.enabled=true \ 21 --set vtep.endpoint="172.18.0.1" \ 22 --set vtep.cidr="10.1.5.0/24" \ 23 --set vtep.mask="255.255.255.0" \ 24 --set vtep.mac="00:50:56:A0:7D:D8" 25 26 # 3 deploy busybox on kind control plaine node 27 28 kubectl label node kind-control-plane dedicated=master 29 kubectl taint nodes --all node-role.kubernetes.io/master- 30 31 kubectl apply -f busybox-master.yaml 32 33 # 4 deploy vxlan-responder systemd service, note change 34 # change the bridge interface name in vxlan-responder.py 35 # to sniff 36 37 echo "Enabling vxlan-responder.service by default in systemd..." >&2 38 cp vxlan-responder.service /etc/systemd/system/ 39 cp vxlan-responder.py /usr/local/bin/ 40 systemctl enable vxlan-responder.service 41 systemctl start vxlan-responder.service 42