Created
October 6, 2020 21:34
-
-
Save sebgoa/839b633846ca85e94f7bb150839bd12f to your computer and use it in GitHub Desktop.
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
#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