While Login in to Kubernetes dashboard it will ask for 2 types of authentication :
1. Kubeconfig file upload
2. Bearer Token
Below is the way to fetch the bearer token using a single line command and paste it on the Login page. It will Login successfully..
kubectl -n kube-system describe secret $(
kubectl -n kube-system get secret | \
awk '/^deployment-controller-token-/{print $1}'
) | \
awk '$1=="token:"{print $2}'
You can find solutions to issues for various UNIX operating systems Cloud and DevOps here. Also this site provides you career guidance to the beginners looking for a career as UNIX/ DevOps Engineers/ Administrator.
kops - open /home/ubuntu/.ssh/id_rsa.pub: no such file or directory
ubuntu@ip-172-31-43-47:~$ kops create cluster --zones=us-east-2c useast2.soldatinc.net
I0405 00:00:15.764429 15685 create_cluster.go:439] Inferred --cloud=aws from zone "us-east-2c"
error reading SSH key file "/home/ubuntu/.ssh/id_rsa.pub": open /home/ubuntu/.ssh/id_rsa.pub: no such file or directory
ubuntu@ip-172-31-43-47:~$ pwd
/home/ubuntu
ubuntu@ip-172-31-43-47:~$ cat /home/ubuntu/.ssh/id_rsa.pub
cat: /home/ubuntu/.ssh/id_rsa.pub: No such file or directory
ubuntu@ip-172-31-43-47:~$ cd /home/ubuntu/.ssh/
ubuntu@ip-172-31-43-47:~/.ssh$ ll
total 12
drwx------ 2 ubuntu ubuntu 4096 Apr 4 02:04 ./
drwxr-xr-x 5 ubuntu ubuntu 4096 Apr 4 23:58 ../
-rw------- 1 ubuntu ubuntu 392 Apr 4 02:04 authorized_keys
ubuntu@ip-172-31-43-47:~/.ssh$ cat authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCZhu8fX+eiatI97J7NXneGVrGN2t5R9IFiH+ZX7bCtw8z7fofGsSQ1NN1uxwEmWEPSyHGhItUbnU9OeN9/FGQpHK93u9DpMhim9Navem7LuWM1ew78HY+9Aqk40OG0cOOGde4Wziq8DX8/r5VJdNtlUNaGYEG7/gtfpgpgR6LTCHc9pz9XUDYt+it5QBzD+rtdWGKIw6Pmg84jj4jhAhuvrMwZu5sfAVhuD6TBqWHmVDRx5PesvGc78mkzlimzzPaTHS9oaT7kN1dGmQGBzZbrDF6qPxfgaYd5zWDjS42dwdiP3OKOpN49NxxEF8hd0ysA6CQnEStznxaR5GNynP4r jskcbe-key
ubuntu@ip-172-31-43-47:~/.ssh$
Fixed after doing an ssh-keygen
Subscribe to:
Posts (Atom)
Installing Ingress Controller - Kubernetes
Installing the Ingress Controller Prerequisites Make sure you have access to the Ingress controller image: For NGINX Ingress controll...
-
Decommission of LDOM ========================= ldm stop samplepdtestsun08 ldm unbind samplepdtestsun08 ldm destroy samplepdtestsun08 ...
-
hey guys I really felt happy on receiving lot of response to this blog which keep the spirit high in continue writing this. ok I will contin...
-
OS: Sun Solaris 8/10 Hardware: Fire-V880 Error Message: df: cannot statvfs /oracle/test/vol158: I/O error df: cannot statvfs /oracle/test/vo...