Back to articles
Running Kubernetes in Docker (KIND) Locally While Your Cluster Lives in Google Cloud Shell
How-ToDevOps

Running Kubernetes in Docker (KIND) Locally While Your Cluster Lives in Google Cloud Shell

via Dev.toM. Oly Mahmud

You want to develop with Kubernetes locally using KIND, but your laptop doesn't have enough resources. Google Cloud Shell has plenty of compute, but it's not meant for long-running clusters. So run KIND in Cloud Shell and control it from your machine. Why this works: Cloud Shell has more compute than your dev machine Your laptop stays clean No Docker Desktop overhead Create Your KIND Cluster in Cloud Shell First, the cluster config. The important part is extraPortMappings—this exposes ports 80 and 443 to Cloud Shell. kind : Cluster apiVersion : kind.x-k8s.io/v1alpha4 name : streamx-cluster nodes : - role : control-plane image : kindest/node:v1.35.1 extraPortMappings : - containerPort : 80 hostPort : 80 protocol : TCP - containerPort : 443 hostPort : 443 protocol : TCP - role : worker image : kindest/node:v1.35.1 - role : worker image : kindest/node:v1.35.1 Create it and verify: kind create cluster --config kind-config.yaml kubectl cluster-info --context kind-streamx-cluster Export the

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles