github.com/cilium/cilium@v1.16.2/Documentation/installation/cni-chaining-weave.rst (about) 1 .. only:: not (epub or latex or html) 2 3 WARNING: You are looking at unreleased Cilium documentation. 4 Please use the official rendered version released here: 5 https://docs.cilium.io 6 7 ********* 8 Weave Net 9 ********* 10 11 This guide instructs how to install Cilium in chaining configuration on top of 12 `Weave Net <https://github.com/weaveworks/weave>`_. 13 14 .. include:: cni-chaining-limitations.rst 15 16 Create a CNI configuration 17 ========================== 18 19 Create a ``chaining.yaml`` file based on the following template to specify the 20 desired CNI chaining configuration: 21 22 23 .. code-block:: yaml 24 25 apiVersion: v1 26 kind: ConfigMap 27 metadata: 28 name: cni-configuration 29 namespace: kube-system 30 data: 31 cni-config: |- 32 { 33 "cniVersion": "0.3.1", 34 "name": "weave", 35 "plugins": [ 36 { 37 "name": "weave", 38 "type": "weave-net", 39 "hairpinMode": true 40 }, 41 { 42 "type": "portmap", 43 "capabilities": {"portMappings": true}, 44 "snat": true 45 }, 46 { 47 "type": "cilium-cni" 48 } 49 ] 50 } 51 52 Deploy the :term:`ConfigMap`: 53 54 .. code-block:: shell-session 55 56 kubectl apply -f chaining.yaml 57 58 Deploy Cilium with the portmap plugin enabled 59 ============================================= 60 61 .. include:: k8s-install-download-release.rst 62 63 Deploy Cilium release via Helm: 64 65 .. parsed-literal:: 66 67 helm install cilium |CHART_RELEASE| \\ 68 --namespace=kube-system \\ 69 --set cni.chainingMode=generic-veth \\ 70 --set cni.customConf=true \\ 71 --set cni.configMap=cni-configuration \\ 72 --set routingMode=native \\ 73 --set enableIPv4Masquerade=false 74 75 .. note:: 76 77 The new CNI chaining configuration will *not* apply to any pod that is 78 already running the cluster. Existing pods will be reachable and Cilium will 79 load-balance to them but policy enforcement will not apply to them and 80 load-balancing is not performed for traffic originating from existing pods. 81 82 You must restart these pods in order to invoke the chaining configuration on 83 them. 84 85 .. include:: k8s-install-validate.rst 86 87 .. include:: next-steps.rst 88