Skip to content

Instantly share code, notes, and snippets.

@acj
Created April 5, 2020 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acj/6802d03026bdb6efc0a10c52e6b41307 to your computer and use it in GitHub Desktop.
Save acj/6802d03026bdb6efc0a10c52e6b41307 to your computer and use it in GitHub Desktop.
Installing actions-runner-controller on microk8s running in LXC

Installing actions-runner-controller on microk8s running in LXC

This is a niche problem, but these steps worked for me. Proxmox 6.1-5 with microk8s v1.18.0 running in an LXC container. Tested with actions-runner-controller 0.4.1.

  • Need to add --allow-privileged=true to /var/snap/microk8s/current/args/kube-apiserver
    • Then restart the API server: sudo systemctl restart snap.microk8s.daemon-apiserver.service
    • If this is a cluster of nodes, then this change needs to be applied on node hosting the control plane
  • Enable "Create device nodes" feature for the container (Options > Features)
  • Add to LXC container config: lxc.cgroup.devices.allow: a

Assumes that these steps have already been followed.

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