Member-only story

Unlocking Modern Infrastructure

Mastering Kubernetes: Unleashing Cloud-Native Potential

Part 3: Kubernetes Networking Lab

Eugen Hoble

--

Prerequisites

To setup a KIND cluster for this Lab, Step-by-Step Guide to Creating a Kubernetes Cluster with KIND and KUBEADM article can be used.

Or, the steps from the KIND Quick Start page.

Deploy a New Cluster

Let’s start a local docker registry and then create a cluster, by running

$docker run -d -p 5000:5000 - - restart=always - - name registry \
-v ~/docker-local-registry/storage:/var/lib/registry \
registry:2
$ kind create cluster --name=micros-cluster --config workerNodes.yaml

where, workerNodes.yaml looks like

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
containerdConfigPatches:
- |-
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:5000"]
endpoint = ["http://localhost:5000"]
nodes:
- role: control-plane
- role: worker
- role: worker

--

--

No responses yet