Hugo Future Imperfect Slim

Tracey Jaquith · PoohBot Pictures

Technophile · Optimist · Cyclist · Archivist · Design · Video · TV · Nomad · Docker

3-Minute Read

one-shot install in less than one minute

things turning me on this week
☕enjoy with a hot cupa java/script

k3s from Rancher

I’ve been using kubeadm, professionally, for a few years now. It’s been very good. At Internet Archive, we run everything “on-premise”. So using AMZN S3, Google GKE, Azure or similar, are out for us. After a few “perfect storm” of issues in the last 90 days, I started researching on the web, and in devops Slack communities of 15k to 100k engineers, I started looking into k3s.

The current conventional wisdom on k3s from Rancher Labs is that it’s small, lightweight, and great/ideal for devices with minimal RAM/CPU, “Internet of Things”, raspberry PIs, and more.

However, I’m here to tell you, it seems fantastic for more than just that.

k3s, not unlike nomad, plays a very cute trick. In it’s “one-shot” installer:

curl -sfL https://get.k3s.io | sh -

– which indeed will be up in seconds, it leverages a single (presently ~50MB) binary single executable (to /usr/local/bin/k3s)

But it doesn’t end there. Going with their wonderful “one shot” installer vibe, you don’t need docker installed, or kubectl. They simply symlink kubectl to their binary (and implement full CNCF verified compatibility) and implement crictl API for docker building and deployment. All with one binary! (And they also auto-detect and systemd setup a daemon to auto-restart on reboot, etc.)

It comes up so fast and ready to go, it’s a bit hard to believe! Give it a try on a virtual machine you have access to. They have a single “uninstall and remove all traces” script they print out during the install that … you guessed it, takes only seconds to run.

So what’s the catch?

There isn’t one, really. But I did find a few minor things I needed to do to “drop-in replace” with GitLab and their full “Auto DevOps” CI/CD pipelines (which we use extensively at my work).

Minor things:

  • need to change GitLab’s annotation from default nginx ingress to traefik loadbalancer - which is what comes with k3s
  • remove a GitLab default secret (for https) that doesn’t get used with traefik and causes auto-https (via traefik built-in lets encrypt ) to fail
  • as of now there’s a “one-shot” issue with setting up the admin email address for the lets encrypt part of traefik

Right, so….

I (continue to) keep archive.org’s installers for kubernetes and nomad installers updated here via the kre8 and nomad repositories.

Here are my notes on GitLab + k3s + k8s full CI/CD:

Prerequisites:

  • ssh-able unix node you have sudo on
  • wildcard DNS pointer to the IP address of your 1st node. you can, alternatively, temporarily edit your laptop /etc/hosts and point some nice internet public url hostnames to your 1st node IP address.

Helpful links/scripts I maintain actively:

Give k3s a try!

Say Something

Comments

tracey pooh's Gravatar
NOTE: after talking with some of the traefik folks, over the weekend I updated the installer from v1.7 to v2.2+ (which is more flexible, but adds a bit more complexity to the setup for https)

Recent Posts

Categories

Tags

#spottheshuttle 1940s 1st person 3d accident aids lifecycle airplane animals appeltart apple pie apple watch architecture arkit art ascii art asia augmented reality baking bali bay area best of biking birthday cafe racer camaro camera video camping candy cars cat pee cat psychology cats cloud coding college colorspaces computer vision cornell crictl css dark mode death valley decaf deinterlace desert design diy docker documentary driving ducting ebgb elbow break emacs endeavour family ffmpeg food games geek gitlab golden gate bridge google cardboard grand canyon gravel bike green magic man h.264 hack health highway 1 home https hugo hyperlapse internet archive ios iphone javascript jeep k3s kubernetes landscapes linux lisp luke battling darth mac macosx markdown mashup metal montclair motion-jpeg motorcycle mountain bike mplayer mt tamalpais nasa new bay bridge news ninja oakland olecranon partioning phoenix php php-htm-mode politics protest rancher recording remaster remix remodel sedona shuttle small town star wars surgery swift tahoe technical thirsty thursday time machine time-lapse timing belt adjustment top end rebuild tracey traefik training ride travel vacation valve job video virtual reality vlog vscode weekend-mechanic work x264 xcode yuvj420p zx6

About

tracey is a nonstop dance party. so you dont have to. dont ask me about containers. thanks for dropping by today. you look nice.