
set kubernetes in local
19 May 2021

How to set Kubernetes in local ?
install kubectl with sdk
install k9s
install helm
set this code in terminal ( make sure you have done export gcloud command in terminal )
gcloud config set container/use_application_default_credentials true
gcloud config set account <user>@femaledaily.com && gcloud config set project new-fdn && gcloud container clusters get-credentials fdn2 --zone asia-southeast1-a
download auth.json
set export to your terminal
nano ~/.zshrc
#add this
export GOOGLE_APPLICATION_CREDENTIALS=./auth.json
source ~/.zshrc
kubectl config get-contexts
kubectl config use-context
kubectl get nodes ( this command will thes connection from local to server )
run k9s -n dev
enter your cluster