Kubernetes with kind

Installation

  1. Install GoLang:
  • Get the latest release from here for whatever operating system (OS) you are running
  • If you are on Linux OS, please follow this article to ensure your environment recognizes GoLang
# down load the latest release from GoLang official website
wget -c https://golang.org/dl/go1.17.3.linux-amd64.tar.gz
# decompress and move the decompressed files to /usr/local
sudo tar -C /usr/local -xvzf <go1.1x.x ...>
# add the following 2 lines to the user profile
nano ~/.profile
export PATH=$PATH:/usr/local/go/bin
export GOBIN="$GOPATH/bin"
# read through the change. If you are running on VM, please restart the instance.
source ~/.profile
# verify the OS could recognize GoLang
go version
# add a group called "docker" if there is no group called this
sudo groupadd docker
# add the user into the group "docker"
sudo usermod -aG docker $USER
  • Depending on your OS, pick the right method to follow.
  • The following could be followed if you are running on Linux OS.
# instead of using "root", use your own username
sudo install -o <username> -g <username> -m 0755 kubectl /usr/local/bin/kubectl
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.8.1/kind-linux-amd64 chmod +x ./kind sudo mv ./kind /usr/local/bin
sudo mv ./kind /usr/local/bin
kind create cluster
kind create cluster --name special-kind --config='<configuration file name>'
kubectl annotate ingress example-ingress kubernetes.io/ingress.class=ambassador

Verification

  • GoLang & Docker
  • Kubectl & HELM
  • Ambassador Ingress
  • Example Pods, Services for Ingress
  • Ingress resource with the proper annotation
  • Test Ingress

--

--

--

Learning new things about Kubernetes every day. Hopefully, the learning notes could help people on the same journey!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Open-Sourcing Isopod: An Expressive DSL Framework for Kubernetes Configuration

How Much Does it Cost to Build a Grocery Delivery App?

My Honest Review: Udacity Full-Stack Nano Degree

Optimizing Your Spark Joins in an Unfashionable Manner

October Development Round Up

How to share data across multiple views in Laravel

A laptop computer with a code editor opened up in full screen

What is Apache Zookeeper?

3 Reasons Why You Should Not Gold-plate Your Projects?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jonathan

Jonathan

Learning new things about Kubernetes every day. Hopefully, the learning notes could help people on the same journey!

More from Medium

OpenShift 4 route with TLS secret and Cert Utils Operator

Kubernetes Services for Absolute Beginners — ClusterIP

Implementation Ingress Controller

Headless Kubernetes Services