1、准备bpf环境
#!/bin/bash a=`docker run --privileged --pid=host alpine pidof kubelet` docker run --privileged --pid=host alpine nsenter -t$a -m -- mount bpffs /sys/fs/bpf -t bpf docker run -v /sys/fs/bpf:/sys/fs/bpf alpine mount | grep /sys/fs/bpf docker run --privileged --pid=host alpine nsenter -t$a -m -- mount --make-shared /sys/fs/bpf
2、使用helm部署
helm install cilium .
3、部署hubble,可视化
kubectl apply -f https://raw.githubusercontent.com/cilium/cilium/v1.7.0/install/kubernetes/quick-install.yaml