Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

kube dashboard expose access port

kubectl -n kube-system edit service kubernetes-dashboard
#change the .spec.type to NodePort


#You can reach by hitting the nodePort for the dashboard on the master

kubectl describe services kubernetes-dashboard --namespace=kube-system
#NodePort:       <unset> 30042/TCP
#http://MASTER:30042
Comment

kube dashboard expose access port

kubectl port-forward -n kubernetes-dashboard service/kubernetes-dashboard 10443:443 --address 0.0.0.0

#In your case the namespace is different so:
kubectl port-forward -n kube-system service/kubernetes-dashboard 10443:443 --address 0.0.0.0
Comment

kube dashboard expose access port

kubectl expose deployment kubernetes-dashboard -n kubernetes-dashboard --type=LoadBalancer --name=kdash --port=8001 --target-port=8443
Comment

kube dashboard expose access port

#Using terminal app on my laptop did the following:

sudo ssh  -i “MYAMOZONHOSTKEYPAIR.pem" -L 8001:127.0.0.1:8001 ubuntu@MYAMAZONHOST
#MYAMAZONHOST is where I am running k3s.

#Upon SSH did the following:

sudo k3s kubectl proxy
#Then using the browser opened the url http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/

#Kubernetes dashboard opened successfully.
Comment

PREVIOUS NEXT
Code Example
Shell :: bash cd || exit 
Shell :: bash find string in program output 
Shell :: recover a merged commit git 
Shell :: reset to commit 
Shell :: tar: Cowardly refusing to create an empty archive 
Shell :: mc for ubuntu linux 
Shell :: win terminal turn off screen 
Shell :: dos2unix not found in mac 
Shell :: UnicodeDecodeError 
Shell :: install kex in kali linux wsl 
Shell :: terminal theme 
Shell :: git worktree prune 
Shell :: bash script creation 
Shell :: Install command-line ipfs 
Shell :: get client secret azure app registration powershell 
Shell :: composer install -- 
Shell :: install ripgrep windows 
Shell :: sharepoint logs folder 
Shell :: pig latin group by 
Shell :: terraform download 
Shell :: conda install version 
Shell :: git commit with message 
Shell :: upload file ssh terminal 
Shell :: bash setting home 
Shell :: linux -ltr 
Shell :: windows search multiple file types 
Shell :: git pull rebase command 
Shell :: sign a commit after push 
Shell :: copy paste file terminal 
Shell :: if clauses bash 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =