Cilium各模式概览 - 修正版
修正版
新增ipMasqAgent.enable=true、prometheus.enabled=true、operator.prometheus.enabled=true、Host-Reachable Service (hostServices.enabled=true)
- vxlan
helm install cilium cilium/cilium --version 1.9.9 \ --namespace kube-system \ --set tunnel=vxlan \ --set ipam.mode=kubernetes \ --set hostServices.enabled=true \ --set ipMasqAgent.enabled=true \ --set prometheus.enabled=true \ --set operator.prometheus.enabled=true \ --set ipam.operator.clusterPoolIPv4PodCIDR=172.21.0.0/20 \ --set ipam.operator.clusterPoolIPv4MaskSize=26 \ --set k8sServiceHost=apiserver.qiangyun.com \ --set k8sServicePort=6443
- cloud route
helm install cilium cilium/cilium --version 1.9.9 \ --namespace kube-system \ --set tunnel=disabled \ --set kubeProxyReplacement=strict \ --set hostServices.enabled=true \ --set ipMasqAgent.enabled=true \ --set prometheus.enabled=true \ --set operator.prometheus.enabled=true \ --set nativeRoutingCIDR=172.21.0.0/20 \ --set ipam.mode=kubernetes \ --set ipam.operator.clusterPoolIPv4PodCIDR=172.21.0.0/20 \ --set ipam.operator.clusterPoolIPv4MaskSize=26 \ --set k8sServiceHost=apiserver.qiangyun.com \ --set k8sServicePort=6443
- DSR
helm install cilium cilium/cilium --version 1.9.9 \ --namespace kube-system \ --set tunnel=disabled \ --set autoDirectNodeRoutes=true \ --set kubeProxyReplacement=strict \ --set loadBalancer.mode=hybrid \ --set ipMasqAgent.enabled=true \ --set prometheus.enabled=true \ --set operator.prometheus.enabled=true \ --set hostServices.enabled=true \ --set nativeRoutingCIDR=172.21.0.0/20 \ --set ipam.mode=kubernetes \ --set ipam.operator.clusterPoolIPv4PodCIDR=172.21.0.0/20 \ --set ipam.operator.clusterPoolIPv4MaskSize=26 \ --set k8sServiceHost=apiserver.qiangyun.com \ --set k8sServicePort=6443
- XDP
helm install cilium cilium/cilium --version 1.9.9 \ --namespace kube-system \ --set tunnel=disabled \ --set autoDirectNodeRoutes=true \ --set kubeProxyReplacement=strict \ --set ipMasqAgent.enabled=true \ --set prometheus.enabled=true \ --set operator.prometheus.enabled=true \ --set loadBalancer.acceleration=native \ --set loadBalancer.mode=hybrid \ --set hostServices.enabled=true \ --set ipam.mode=kubernetes \ --set nativeRoutingCIDR=172.21.0.0/20 \ --set ipam.operator.clusterPoolIPv4PodCIDR=172.21.0.0/20 \ --set ipam.operator.clusterPoolIPv4MaskSize=26 \ --set k8sServiceHost=api.qiangyun.com \ --set k8sServicePort=6443
- endpointRoutes
helm install cilium cilium/cilium --version 1.9.9 \ --namespace kube-system \ --set tunnel=disabled \ --set endpointRoutes.enabled=true \ --set bpf.hostRouting=true \ --set ipMasqAgent.enabled=true \ --set prometheus.enabled=true \ --set operator.prometheus.enabled=true \ --set kubeProxyReplacement=strict \ --set loadBalancer.mode=hybrid \ --set hostServices.enabled=true \ --set nativeRoutingCIDR=172.21.0.0/20 \ --set ipam.mode=kubernetes \ --set ipam.operator.clusterPoolIPv4PodCIDR=172.21.0.0/20 \ --set ipam.operator.clusterPoolIPv4MaskSize=26 \ --set k8sServiceHost=apiserver.qiangyun.com \ --set k8sServicePort=6443