The Rabbit Hole

The Rabbit Hole

Share this post

The Rabbit Hole
The Rabbit Hole
I Made a Local Kubernetes Startup Script So You Don’t Have To
User's avatar
Discover more from The Rabbit Hole
On Youtube, I am the channel @LearnFastMakeThings. This is where I share more about the topics in my videos. Subscribe for a much deeper dive into things I learned while making the things I made. Be warned, you might end up in a Rabbit Hole!
Already have an account? Sign in

I Made a Local Kubernetes Startup Script So You Don’t Have To

If you are getting started with Kubernetes development, one of the first things you are going to need is a way to run Kubernetes on your…

Gary Morse's avatar
Gary Morse
Apr 28, 2022

Share this post

The Rabbit Hole
The Rabbit Hole
I Made a Local Kubernetes Startup Script So You Don’t Have To
Share

If you are getting started with Kubernetes development, one of the first things you are going to need is a way to run Kubernetes on your computer. There are a bunch of different ways to startup Kubernetes locally, but almost all of them either have a bunch of complicated steps or require you to understand Kubernetes in the first place (which kind of defeats the purpose). So to solve that problem for you (and myself, honestly) I wrote a simple Kubernetes startup script that will get you a running local cluster in no time.

What you get with this script

This Kubernetes startup script will install a local cluster on your machine, set up a local container repository, and install the NGINX Kubernetes ingress controller. With these three things, you should be able to install anything you want on the cluster and see it work.

Prerequisites

Before running the script, here are a few things you will need and how to install them

  1. Docker — Install docker desktop from https://www.docker.com/products/docker-desktop/

  2. Homebrew — This script is written for Mac. Check out this article for how to install homebrew

If you are using a mac, this is all you need before running my script. If you are running windows, you will need to install Kubernetes Kind in WSL2

Downloading the script

You can download the local Kubernetes startup script here

How to use the local Kubernetes startup script

After you have downloaded the script, save it somewhere that you can access it easily, or put it in your /usr/local/bin directory and name the file lk8s

Next, you can run the startup by running lk8s up

If you are successful, it should look like this:

lk8s up
lk8s up

Should now be able to run kubectl get pods and see that the cluster responds.

Local repository

This script installs the Kind local registry. You can read more about that here. Essentially, this script allows you to push your containers to a local registry instead of Docker hub or other public registries so you can test things out.

Ingress controller

This script installs the NGINX ingress controller Kubernetes automatically. One feature that always seems missing from a local Kubernetes cluster is a way to use Ingress objects properly. This script handles that part for you. Just create an ingress for the localhost domain and you are all set.

Simple up and down

As mentioned above, this local Kubernetes startup script has a super simple command which will save you a ton of time in the long run. Just run lk8s up and lk8s down. It’s that simple.


Subscribe to The Rabbit Hole

By Gary Morse · Launched a year ago
On Youtube, I am the channel @LearnFastMakeThings. This is where I share more about the topics in my videos. Subscribe for a much deeper dive into things I learned while making the things I made. Be warned, you might end up in a Rabbit Hole!

Share this post

The Rabbit Hole
The Rabbit Hole
I Made a Local Kubernetes Startup Script So You Don’t Have To
Share

Discussion about this post

User's avatar
Step-by-Step: Adding Shared Storage to a Kubernetes Cluster
Today I’m going to show you how to expand the capabilities of a Kubernetes cluster by adding shared storage
Mar 13, 2023 • 
Gary Morse

Share this post

The Rabbit Hole
The Rabbit Hole
Step-by-Step: Adding Shared Storage to a Kubernetes Cluster
How To Turn Your Old Hardware Into A Kubernetes Cluster
Today I’m going to show you how to set up Kubernetes on an old computer that you may have sitting around.
Mar 12, 2023 • 
Gary Morse

Share this post

The Rabbit Hole
The Rabbit Hole
How To Turn Your Old Hardware Into A Kubernetes Cluster
How to Download Files from Github: 4 Easy Methods
If you’re new to coding or just really like to find cool software on the web, you’ve probably come across GitHub
Mar 29, 2023 • 
Gary Morse

Share this post

The Rabbit Hole
The Rabbit Hole
How to Download Files from Github: 4 Easy Methods

Ready for more?

© 2025 Ask Cloud Architech LLC
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Create your profile

User's avatar

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.