Skip to content

aguirresabino/kubernetes-local-with-kind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KinD

Create cluster

kind create cluster --config cluster.yaml --name local-tests

Deploying Dashboard UI

Run this command:

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0/aio/deploy/recommended.yaml

Create User

kubectl apply -f k8s-dashboard/clusterrolebinding.yaml -f k8s-dashboard/service-account.yaml

Getting Bearer Token

kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}"

Proxy

kubectl proxy

Dashboard is available at http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/

Deploy app-example

kubectl apply -f app-example
kubectl port-forward service/foo-service 5678

Application is available at localhost:5678

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published