Hugo Future Imperfect Slim

Tracey Jaquith 路 PoohBot Pictures

Technophile 路 Optimist 路 CyclistArchivist 路 Design 路 Video 路 TV 路 Kubernetes 路 Docker

3 minutes read

one-shot install in less than one minute

things turning me on this week
鈽昬njoy 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:

  • (k3s.md)[https://gitlab.com/internetarchive/kre8/-/blob/master/README.md]

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

tracey pooh

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)
Reply

Recent posts

See more

Categories

Tags

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

About

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