A container image containing cli used for kind and argocd performance testing:
- docker
- argocd
- kubectl
- oc
- kind
docker build . -t docker-argo-oc-kind
docker run --net=kind -ti -v /var/run/docker.sock:/var/run/docker.sock docker-argo-oc-kind bash
Create kind clusters:
for i in {5..1}
do
kind create cluster -nkind$i
done
Change .kube/config
configuration to use internal addresses
for i in $( docker ps |grep kindest | cut -f1 -d\ ); do
ip_address=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $i )
host_port=$( docker inspect --format '{{ (index (index .NetworkSettings.Ports "6443/tcp") 0).HostPort }}' $i )
sed -i "s/127.0.0.1:$host_port/$ip_address:6443/g" ~/.kube/config
done