github.com/imran-kn/cilium-fork@v1.6.9/Documentation/cmdref/kvstore.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      http://docs.cilium.io
     6  
     7  .. _install_kvstore:
     8  
     9  Key-Value Store
    10  ===============
    11  
    12  +---------------------+--------------------------------------+----------------------+
    13  | Option              | Description                          | Default              |
    14  +---------------------+--------------------------------------+----------------------+
    15  | --kvstore TYPE      | Key Value Store Type:                |                      |
    16  |                     | (consul, etcd)                       |                      |
    17  +---------------------+--------------------------------------+----------------------+
    18  | --kvstore-opt OPTS  |                                      |                      |
    19  +---------------------+--------------------------------------+----------------------+
    20  
    21  consul
    22  ------
    23  
    24  When using consul, the consul agent address needs to be provided with the
    25  ``consul.address``:  ``consul.tlsconfig`` is optional, and is only required
    26  for TLS authentication:
    27  
    28  +---------------------+---------+---------------------------------------------------+
    29  | Option              |  Type   | Description                                       |
    30  +---------------------+---------+---------------------------------------------------+
    31  | consul.address      | Address | Address of consul agent                           |
    32  +---------------------+---------+---------------------------------------------------+
    33  | consul.tlsconfig    | Path    | Path to a consul configuration file               |
    34  |                     |         | for client server authentication                  |
    35  +---------------------+---------+---------------------------------------------------+
    36  
    37  Example of the consul configuration file:
    38  
    39  .. code:: yaml
    40  
    41      ---
    42      cafile: '/var/lib/cilium/consul-ca.pem'
    43      keyfile: '/var/lib/cilium/client-key.pem'
    44      certfile: '/var/lib/cilium/client.pem'
    45      #insecureskipverify: true
    46  
    47  etcd
    48  ----
    49  
    50  When using etcd, one of the following options need to be provided to configure the
    51  etcd endpoints:
    52  
    53  +---------------------+---------+---------------------------------------------------+
    54  | Option              |  Type   | Description                                       |
    55  +---------------------+---------+---------------------------------------------------+
    56  | etcd.address        | Address | Address of etcd endpoint                          |
    57  +---------------------+---------+---------------------------------------------------+
    58  | etcd.config         | Path    | Path to an etcd configuration file.               |
    59  +---------------------+---------+---------------------------------------------------+
    60  
    61  Example of the etcd configuration file:
    62  
    63  .. code:: yaml
    64  
    65      ---
    66      endpoints:
    67      - https://192.168.0.1:2379
    68      - https://192.168.0.2:2379
    69      trusted-ca-file: '/var/lib/cilium/etcd-ca.pem'
    70      # In case you want client to server authentication
    71      key-file: '/var/lib/cilium/etcd-client.key'
    72      cert-file: '/var/lib/cilium/etcd-client.crt'
    73