Skip to content

Instantly share code, notes, and snippets.

@tyrm
Last active October 23, 2020 23:41
Show Gist options
  • Save tyrm/cd0ad529ecf808b01efeb7fa36658d6c to your computer and use it in GitHub Desktop.
Save tyrm/cd0ad529ecf808b01efeb7fa36658d6c to your computer and use it in GitHub Desktop.
k3s notes

create stack-leader-1

update firmware

add " cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory" to /boot/firmware/cmdline.txt

install keepalived

global_defs {
    vrrp_version 3
}

vrrp_instance VI_1 {
    interface                  eth0
    priority                   101
    virtual_router_id          51
    advert_int                 1
    accept
    garp_master_refresh        5
    garp_master_refresh_repeat 1
    unicast_src_ip             10.1.70.49

    unicast_peer {
        10.1.70.48
    }

    virtual_ipaddress {
        10.1.70.50
    }

}

install k3s

curl -sfL https://get.k3s.io | K3S_DATASTORE_ENDPOINT=postgres://k3s:k3s@backyard/k3s sh -s - server --tls-san stack-leader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment