Skip to content

Instantly share code, notes, and snippets.

@areed
Last active December 12, 2020 05:06
Show Gist options
  • Save areed/50a2af9d91edcbc7c665a95a4012163e to your computer and use it in GitHub Desktop.
Save areed/50a2af9d91edcbc7c665a95a4012163e to your computer and use it in GitHub Desktop.
  1. Launch an Ubuntu 20 instance with 20GB boot disk size
  2. sudo hostnamectl set-hostname kotsbox && sudo reboot
  3. Add docker and the IP of the docker0 interface as the private address in your kurl spec
spec:
  docker:
    version: latest
  kurl:
    privateAddress: 172.17.0.1
  1. For auto-upgrading Kubernetes and kURL add-ons, include ekco 0.8.0+ and with an upgrade schedule:
spec:
  ekco:
    version: latest
    autoUpgradeSchedule: Sat 21:15
  1. Install kurl: curl https://k8s.kurl.sh/my-app | sudo bash

Configure OS Updates

  1. apt install unattended-upgrades
  2. Edit /etc/apt/apt.conf.d/50unattended-upgrades and set Unattended-Upgrade::Automatic-Reboot "true";

Create AMI

  1. Stop the instance and create an Image from it

Use the AMI

  1. Launch with 80GB storage and TCP ports 22, 6443, and 8800 open.
  2. SSH into the instance and run kubectl kots reset-password default
  3. On the instance run sudo hostnamectl set-hostname kotsbox && sudo reboot
  4. Point browser to port 8800 of instance IP and install kots application.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment