Skip to main content

cilium


설치

cilium-cli

Helm으로 cilium 설치하기

helm repo add cilium https://helm.cilium.io/
helm repo update cilium \
&& helm search repo cilium/cilium -l | head -n 10
helm pull cilium/cilium \
--version 1.14.6
helm show values cilium/cilium \
--version 1.14.6 \
> cilium-1.14.6.yaml
k8sServiceHost: "<apiServerHost>"
k8sServicePort: "<apiServerPort>"

# mesh
cluster:
name: <name>

ipam:
# -- Configure IP Address Management mode.
# ref: https://docs.cilium.io/en/stable/network/concepts/ipam/
mode: "cluster-pool"
operator:
# -- IPv4 podCIDR list
clusterPoolIPv4PodCIDRList: ["10.244.0.0/16"]
# -- IPv4 CIDR mask size to delegate to individual nodes for IPAM.
clusterPoolIPv4MaskSize: 25
# -- IPv6 podCIDR list
clusterPoolIPv6PodCIDRList: ["fd00::/104"]
# -- IPv6 CIDR mask size to delegate to individual nodes for IPAM.
clusterPoolIPv6MaskSize: 120

kubeProxyReplacement: "true"

operator:
replicas: 1
helm template cilium cilium-1.14.6.tgz \
--version 1.14.6 \
-n kube-system \
-f cilium-values.yaml \
> cilium.yaml
helm upgrade cilium cilium-1.14.6.tgz \
--install \
--history-max 5 \
--version 1.14.6 \
-n kube-system \
-f cilium-values.yaml
cilium status --wait

테스트

cilium connectivity test

삭제

helm uninstall cilium -n kube-system
for crd in $(kubectl get crd -o name); do
case $crd in
*cilium.io)
kubectl delete $crd
;;
esac
done