1. 24 Mar, 2021 2 commits
    • Akihiro Suda's avatar
      rootless: enable resource limitation (requires cgroup v2, systemd) · 6e8284e3
      Akihiro Suda authored
      Now rootless mode can be used with cgroup v2 resource limitations.
      A pod is executed in a cgroup like "/user.slice/user-1001.slice/user@1001.service/k3s-rootless.service/kubepods/podd0eb6921-c81a-4214-b36c-d3b9bb212fac/63b5a253a1fd4627da16bfce9bec58d72144cf30fe833e0ca9a6d60ebf837475".
      
      This is accomplished by running `kubelet` in a cgroup namespace, and enabling `cgroupfs` driver for the cgroup hierarchy delegated by systemd.
      
      To enable cgroup v2 resource limitation, `k3s server --rootless` needs to be launched as `systemctl --user` service.
      Please see the comment lines in `k3s-rootless.service` for the usage.
      
      Running `k3s server --rootless` via a terminal is not supported.
      When it really needs to be launched via a terminal, `systemd-run --user -p Delegate --tty` needs to be prepended to create a systemd scope.
      Signed-off-by: 's avatarAkihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
      6e8284e3
    • Akihiro Suda's avatar
      bump up RootlessKit · 11ef4301
      Akihiro Suda authored
      Signed-off-by: 's avatarAkihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
      11ef4301
  2. 17 Mar, 2021 4 commits
  3. 16 Mar, 2021 1 commit
  4. 15 Mar, 2021 1 commit
  5. 11 Mar, 2021 2 commits
  6. 09 Mar, 2021 2 commits
  7. 06 Mar, 2021 1 commit
    • Brad Davidson's avatar
      Always use static ports for client load-balancers (#3026) · 7cdfaad6
      Brad Davidson authored
      * Always use static ports for the load-balancers
      
      This fixes an issue where RKE2 kube-proxy daemonset pods were failing to
      communicate with the apiserver when RKE2 was restarted because the
      load-balancer used a different port every time it started up.
      
      This also changes the apiserver load-balancer port to be 1 below the
      supervisor port instead of 1 above it. This makes the apiserver port
      consistent at 6443 across servers and agents on RKE2.
      
      Additional fixes below were required to successfully test and use this change
      on etcd-only nodes.
      
      * Actually add lb-server-port flag to CLI
      * Fix nil pointer when starting server with --disable-etcd but no --server
      * Don't try to use full URI as initial load-balancer endpoint
      * Fix etcd load-balancer pool updates
      * Update dynamiclistener to fix cert updates on etcd-only nodes
      * Handle recursive initial server URL in load balancer
      * Don't run the deploy controller on etcd-only nodes
      7cdfaad6
  8. 05 Mar, 2021 3 commits
  9. 04 Mar, 2021 1 commit
  10. 03 Mar, 2021 1 commit
  11. 02 Mar, 2021 1 commit
  12. 01 Mar, 2021 12 commits
  13. 27 Feb, 2021 2 commits
  14. 24 Feb, 2021 1 commit
  15. 23 Feb, 2021 2 commits
  16. 18 Feb, 2021 1 commit
  17. 17 Feb, 2021 3 commits