github.com/cilium/cilium@v1.16.2/Documentation/installation/requirements-k3s.rst (about)

     1  To install Cilium on `k3s <https://rancher.com/docs/k3s/latest/en/quick-start/>`_,
     2  perform the following steps:
     3  
     4  **Default Configuration:**
     5  
     6  =============== =============== ==============
     7  Datapath        IPAM            Datastore
     8  =============== =============== ==============
     9  Encapsulation   Cluster Pool    Kubernetes CRD
    10  =============== =============== ==============
    11  
    12  **Requirements:**
    13  
    14  * Install your k3s cluster as you normally would but making sure to disable
    15    support for the default CNI plugin and the built-in network policy enforcer so
    16    you can install Cilium on top:
    17  
    18  .. code-block:: shell-session
    19  
    20      curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC='--flannel-backend=none --disable-network-policy' sh -
    21  
    22  * For the Cilium CLI to access the cluster in successive steps you will need to
    23    use the ``kubeconfig`` file stored at ``/etc/rancher/k3s/k3s.yaml`` by setting
    24    the ``KUBECONFIG`` environment variable:
    25  
    26  .. code-block:: shell-session
    27  
    28      export KUBECONFIG=/etc/rancher/k3s/k3s.yaml