Kollaps
Kollaps copied to clipboard
Issue generating an experiment with Kubernetes
Good morning everyone, I am having a problem with generating the experiment in a cluster named grid5000 (http://grid5000.fr/). I followed the old tutorial in the public Kollaps repo (https://github.com/miguelammatos/Kollaps) and, in the step to generate the experiment (./KollapsDeploymentGenerator ./iperf3/topology.xml -k iperf3_experiment.yaml) I get the following error:
An error occured, terminating!
Error Message: Invalid kube-config file. No configuration found.
These were the basic steps I followed:
#Obtaining sudo privileges
sudo-g5k
#installing docker
g5k-setup-docker -t
#installing Kubernetes
#There are no worker nodes, so no worker node join
sudo swapoff --a
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - && \
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list && \
sudo apt-get update -q && \
sudo apt-get install -qy kubeadm
sudo sysctl net.bridge.bridge-nf-call-iptables=1
sudo kubeadm init --token-ttl=0
mkdir -p $HOME/.kube && \
sudo cp /etc/kubernetes/admin.conf $HOME/.kube/config && \
sudo chown $(id -u):$(id -g) $HOME/.kube/config
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')&env.IPALLOC_RANGE=10.2.0.0/24"
#Installing kollaps
git clone --branch master --depth 1 --recurse-submodules https://github.com/miguelammatos/Kollaps.git
cd Kollaps
export DOCKER_BUILDKIT=1docker build --rm -f dockerfiles/Kollaps -t kollaps:1.0 .
docker build -f dockerfiles/DeploymentGenerator -t kollaps-deployment-generator:1.0 .
#Generating the experiment
cd examples./KollapsDeploymentGenerator ./iperf3/topology.xml -k iperf3_experiment.yaml
I get the error message, but the ~/.kube/config file is there. I checked the kubernetes installation and I could not get access to the cluster, so I talked to the g5k support and was instructed to install k8s using terraform and asdf to manage the software. I did it and my kubernetes installation is now up and running. The configuration file is the same in ~/.kube/config. I also set the variable KUBECONFIG to point to my config file. I have a cluster and can access it with kubectl. Nevertheless, I get the same error.
Do you have any idea on how to investigate this further?
My best regards
Hi @pedrocruz , sorry for the delay we were working on the second version of Kollaps, if you clone the repository again and follow the instructions it should be fixed, the new instruction that is relevant to your bug is this one: cp $HOME/.kube/config kube/config Basically, the deployment generator needs the local kube config file to generate the .yaml. If the problem persists or any other problem appears please contact us