minikube start --network-plugin=cni
Deploy Cilium with Hubble enabled:
wget https://github.com/cilium/cilium/archive/master.zip
unzip master.zip
cd cilium-master
helm install cilium ./install/kubernetes/cilium \
--namespace kube-system \
--set global.hubble.enabled=true \
--set global.hubble.cli.enabled=true \
--set global.hubble.cli.image.tag=latest
Make sure cilium
and hubble-cli
pods are in ready state before proceeding:
kubectl get ds -n kube-system cilium hubble-cli
The output should look something like this:
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
cilium 1 1 1 1 1 <none> 3m59s
hubble-cli 1 1 1 1 1 <none> 3m59s
Now you are ready to start observing flows:
kubectl exec -n kube-system -t -c hubble-cli ds/hubble-cli -- hubble observe -f