#cloud-config hostname: ${hostname} manage_etc_hosts: true # Kernel modules for container networking write_files: - path: /etc/modules-load.d/k8s.conf content: | overlay br_netfilter - path: /etc/sysctl.d/k8s.conf content: | net.bridge.bridge-nf-call-iptables = 1 net.bridge.bridge-nf-call-ip6tables = 1 net.ipv4.ip_forward = 1 packages: - curl - gpg - apt-transport-https runcmd: - modprobe overlay - modprobe br_netfilter - sysctl --system - swapoff -a - sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab