TKGi | Setup kubectl on Master Node
search cancel

TKGi | Setup kubectl on Master Node

book

Article ID: 375832

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Integrated Edition

Issue/Introduction

TKGi is degraded and it's not possible to run kubectl commands against a cluster externally

Environment

  • VMware Tanzu Kubernetes Grid Integrated Edition

Resolution

Use the smoke-tests kubeconfig on the master node for kubectl commands:

SSH into master

bosh -d service-instance_<guid> ssh master/0

Setup kubectl

kubectl="/var/vcap/packages/kubernetes/bin/"

export PATH=${kubectl}:$PATH

export KUBECONFIG="/var/vcap/jobs/smoke-tests/config/kubeconfig"

alias k=kubectl