Skip to content

Instantly share code, notes, and snippets.

@SteffenBlake
Last active September 15, 2021 06:03
Show Gist options
  • Save SteffenBlake/9f661c08ab12879949a06b51cc818c3c to your computer and use it in GitHub Desktop.
Save SteffenBlake/9f661c08ab12879949a06b51cc818c3c to your computer and use it in GitHub Desktop.
Example Control Plane cloud config
# CONTROL PLANE
ssh_authorized_keys:
- <YOUR SSH-RSA KEY HERE> ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQ........... etc etc
hostname: <CONTROL_PLANE_NAME_HERE>
## SET TO YOUR LOCAL TIMEZONE BELOW
run_cmd:
- "touch /etc/localtime"
- "cp /usr/share/zoneinfo/Canada/Mountain /etc/localtime"
- "touch /etc/timezone"
- "echo Canada/Mountain > /etc/timezone"
k3os:
data_sources:
- aws
- cdrom
modules:
- kvm
- nvme
# Uncomment below if using any kind of FUSE file system like MooseFS or NFS for mounting and whatnot
# - fuse
sysctl:
kernel.printk: "4 4 1 7"
kernel.kptr_restrict: "1"
ntp_servers:
- 0.us.pool.ntp.org
- 1.us.pool.ntp.org
# Uncomment below line for worker nodes
# server_url: https://<control plane IP>:6443
k3s_args:
- server
# Uncomment this line and remove `- server` for worker nodes instead
# - agent
- "--cluster-init"
# DISABLE these for Bare Metal stuff
# re-enable local-storage only if using storage on nodes themselves for stateful sets
# Otherwise leave it disabled if using any other kind of fancy external storage like NFS or whatever
- "--disable=traefik,servicelb,local-storage"
environment:
K3S_CLUSTER_SECRET: <YOUR_SUPER_SECRET_PASSWORD_HERE>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment