Last active
January 24, 2021 21:27
-
-
Save olljanat/57f95d228538bd0c31609ff71da8c2c5 to your computer and use it in GitHub Desktop.
Example cloud-init to enable rootless mode on k3OS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run_cmd: | |
- "echo 0 > /proc/sys/kernel/dmesg_restrict" | |
- "chmod a+r /dev/kmsg" | |
- "touch /var/log/k3s-service.log" | |
- "chown rancher /var/log/k3s-service.log" | |
- "if [ ! -f /var/lib/rancher/k3s/agent/etc ]; then mkdir -p /var/lib/rancher/k3s/agent/etc; fi" | |
- "chown -R rancher /var/lib/rancher/k3s/agent/etc" | |
k3os: | |
modules: | |
- overlay | |
- nf_conntrack | |
- br_netfilter | |
- iptable_nat | |
sysctls: | |
kernel.dmesg_restrict: "0" | |
k3s_args: | |
- --rootless | |
password: rancher |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment