Skip to content
Snippets Groups Projects
Select Git revision
  • e3cbbfb9ed731fb43eb2d2ccbe5b4a47d27f0be2
  • master default protected
  • v2.28.0
  • v2.27.0
  • v2.25.1
  • v2.24.3
  • v2.26.0
  • v2.24.2
  • v2.25.0
  • v2.24.1
  • v2.22.2
  • v2.23.3
  • v2.24.0
  • v2.23.2
  • v2.23.1
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.0
  • v2.19.1
  • v2.18.2
22 results

upgrades.md

Blame
  • weave.md 2.62 KiB

    Weave

    Weave 2.0.1 is supported by kubespray

    Weave uses consensus mode (default mode) and seed mode.

    Consensus mode is best to use on static size cluster and seed mode is best to use on dynamic size cluster

    Weave encryption is supported for all communication

    • To use Weave encryption, specify a strong password (if no password, no encryption)
    # In file ./inventory/sample/group_vars/k8s_cluster.yml
    weave_password: EnterPasswordHere

    This password is used to set an environment variable inside weave container.

    Weave is deployed by kubespray using a daemonSet

    • Check the status of Weave containers
    # From client
    kubectl -n kube-system get pods | grep weave
    # output
    weave-net-50wd2                       2/2       Running   0          2m
    weave-net-js9rb                       2/2       Running   0          2m

    There must be as many pods as nodes (here kubernetes have 2 nodes so there are 2 weave pods).

    • Check status of weave (connection,encryption ...) for each node
    # On nodes
    curl http://127.0.0.1:6784/status
    # output on node1
    Version: 2.0.1 (up to date; next check at 2017/08/01 13:51:34)
    
            Service: router
           Protocol: weave 1..2
               Name: fa:16:3e:b3:d6:b2(node1)
         Encryption: enabled
      PeerDiscovery: enabled
            Targets: 2
        Connections: 2 (1 established, 1 failed)
              Peers: 2 (with 2 established connections)
     TrustedSubnets: none
    
            Service: ipam
             Status: ready
              Range: 10.233.64.0/18
      DefaultSubnet: 10.233.64.0/18
    • Check parameters of weave for each node
    # On nodes
    ps -aux | grep weaver
    # output on node1 (here its use seed mode)
    root      8559  0.2  3.0 365280 62700 ?        Sl   08:25   0:00 /home/weave/weaver --name=fa:16:3e:b3:d6:b2 --port=6783 --datapath=datapath --host-root=/host --http-addr=127.0.0.1:6784 --status-addr=0.0.0.0:6782 --docker-api= --no-dns --db-prefix=/weavedb/weave-net --ipalloc-range=10.233.64.0/18 --nickname=node1 --ipalloc-init seed=fa:16:3e:b3:d6:b2,fa:16:3e:f0:50:53 --conn-limit=30 --expect-npc 192.168.208.28 192.168.208.19

    Consensus mode (default mode)

    This mode is best to use on static size cluster

    Seed mode

    This mode is best to use on dynamic size cluster