Skip to content

Instantly share code, notes, and snippets.

@travnewmatic
Last active November 22, 2020 10:33
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 travnewmatic/82669d55c9d3c8281552e6c7b30f0b78 to your computer and use it in GitHub Desktop.
Save travnewmatic/82669d55c9d3c8281552e6c7b30f0b78 to your computer and use it in GitHub Desktop.
# https://github.com/rancher/k3os/blob/master/README.md#configuration-reference
# https://www.centlinux.com/2019/05/configure-network-on-k3os-machine.html
boot_cmd:
- "mkdir -p /mnt/e0945f92-350f-424c-a951-2a47a6c9f767 /var/lib/connman/ethernet_a8a159476f3f_cable"
ssh_authorized_keys:
- "github:travnewmatic"
write_files:
- encoding: ""
content: |-
PARTUUID=e0945f92-350f-424c-a951-2a47a6c9f767 /mnt/e0945f92-350f-424c-a951-2a47a6c9f767 ext4 defaults 0 0
PARTUUID=3fedc8b5-495a-5043-bf95-64244e21d47d /mnt/3fedc8b5-495a-5043-bf95-64244e21d47d ext4 defaults 0 0
owner: root
path: /etc/fstab
permissions: '0644'
- encoding: ""
content: |-
[ethernet_a8a159476f3f_cable]
Name=Wired
AutoConnect=true
IPv4.method=manual
Nameservers=192.168.1.1;
IPv4.netmask_prefixlen=24
IPv4.local_address=192.168.1.203
IPv4.gateway=192.168.1.1
owner: root
path: /var/lib/connman/ethernet_a8a159476f3f_cable/settings
permissions: '0644'
k3os:
labels:
#k3os.io/upgrade=enabled
sysctl:
vm.max_map_count: "262144"
vm.overcommit_memory: "1"
ntp_servers:
- 0.tw.pool.ntp.org
- 1.tw.pool.ntp.org
- 2.tw.pool.ntp.org
- 3.tw.pool.ntp.org
k3s_args:
- "server"
- "--cluster-init"
- "--disable"
- "traefik"
- "--disable"
- "local-storage"
# https://github.com/rancher/k3os/blob/master/README.md#configuration-reference
# https://www.centlinux.com/2019/05/configure-network-on-k3os-machine.html
ssh_authorized_keys:
- "github:travnewmatic"
write_files:
- encoding: ""
content: |-
[ethernet_a8a159476f3f_cable]
Name=Wired
AutoConnect=true
IPv4.method=manual
Nameservers=192.168.1.1;
IPv4.netmask_prefixlen=24
IPv4.local_address=192.168.1.202
IPv4.gateway=192.168.1.1
owner: root
path: /var/lib/connman/ethernet_a8a159476f3f_cable/settings
permissions: '0644'
k3os:
labels:
#k3os.io/upgrade=enabled
sysctl:
vm.max_map_count: "262144"
vm.overcommit_memory: "1"
ntp_servers:
- 0.tw.pool.ntp.org
- 1.tw.pool.ntp.org
- 2.tw.pool.ntp.org
- 3.tw.pool.ntp.org
k3s_args:
- "server"
#- "--cluster-init"
- "--disable"
- "traefik"
- "--disable"
- "local-storage"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment