-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcilium-install.sh
executable file
·33 lines (26 loc) · 1.07 KB
/
cilium-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/zsh
CILIUM_NAMESPACE=kube-system
# from the link
# https://sandstorm.de/de/blog/post/running-cilium-in-k3s-and-k3d-lightweight-kubernetes-on-mac-os-for-development.html
helm repo add cilium https://helm.cilium.io
helm install cilium cilium/cilium --version 1.10.5 \
--namespace kube-system \
--set kubeProxyReplacement=partial \
--set hostServices.enabled=false \
--set externalIPs.enabled=true \
--set nodePort.enabled=true \
--set hostPort.enabled=true \
--set bpf.masquerade=false \
--set image.pullPolicy=IfNotPresent \
--set ipam.mode=kubernetes \
--set cgroup.hostRoot=/sys/fs/cgroup
# cgroupv2 is required in cilium 1.10+
# see https://docs.cilium.io/en/v1.10/gettingstarted/kubeproxy-free/#quick-start
helm upgrade cilium cilium/cilium --version 1.10.5 \
--namespace kube-system \
--reuse-values \
--set hubble.listenAddress=":4244" \
--set hubble.relay.enabled=true \
--set hubble.ui.enabled=true
# access hubble UI locally
# kubectl port-forward -n $CILIUM_NAMESPACE svc/hubble-ui --address 0.0.0.0 --address :: 12000:80 &