Private Google Kubernetes Engine cluster tunneling setup

gcloud container clusters get-credentials default-k8s --region asia-southeast1 --project my-software-dev
  • cluster
  • context
gcloud compute ssh bastion-vm --zone asia-southeast1-b --project my-software-dev -- -L 8765:10.50.11.2:443
# use context
kubectl config use-context just-name
# show context
kubectl config current-context
kubectl create deployment nginx --image=nginxkubectl get pods -o wide
gcloud compute ssh bastion-vm --zone asia-southeast1-b --project my-software-dev -- -L 8991:localhost:8888

--

--

--

Engineer

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

Recommended from Medium

How to Create Category Thumbnails & Featured Images Using Custom Fields

How to Create Category Thumbnails and Featured Images Using Custom Fields

Becoming a Self-Taught Programmer: Cory Althoff Interview

How to use the End-to-End testing library for Google Assistant apps

What made SLOs so messy (and what we can do about it)

Say Goodbye to Excel? A Simple Evaluation of Python Grid Studio Using COVID-19 Data

Use nest as your server-side application with an Angular frontend

Why adding more people to a project doesn’t make it go faster

Programming Languages and Platforms: an annotated twitter thread

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
Victor Yeo

Victor Yeo

Engineer

More from Medium

Kubernetes Analogy Series: Why KubeConfig is like a Security Clearance Document

Is Kubernetes a DIY platform?

Kubernetes 1.22 and The Direction of Future Releases

Using Kubernetes sidecar containers