Skip to content

Instantly share code, notes, and snippets.

@sebgoa
Created October 6, 2020 21:34
Show Gist options
  • Save sebgoa/839b633846ca85e94f7bb150839bd12f to your computer and use it in GitHub Desktop.
Save sebgoa/839b633846ca85e94f7bb150839bd12f to your computer and use it in GitHub Desktop.
#cloud-config
package_update: true
packages:
- apt-transport-https
- ca-certificates
- curl
- gnupg-agent
- software-properties-common
runcmd:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- apt-get update -y
- apt-get -y install docker-ce docker-ce-cli
- systemctl start docker
- systemctl enable docker
- groupadd docker
- usermod -aG docker ubuntu
- curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--docker --write-kubeconfig-mode 644" sh -s -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment