Cilium各模式概览 - 修正版

修正版

新增ipMasqAgent.enable=true、prometheus.enabled=true、operator.prometheus.enabled=true、Host-Reachable Service (hostServices.enabled=true)

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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

     

posted @ 2021-09-14 11:01  MacoPlus  阅读(399)  评论(0编辑  收藏  举报