<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mv="http://macVmlSchemaUri" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:595.0pt 842.0pt;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi George.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><br>
The reason it shows unauthorised is because you’re accessing the dashboard directly and unable to pass through authentication credentials (we only support certificates) via your browser.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><br>
To access the dashboard download and install the kubeconfig file presented by the web interface you used to bootstrap the cluster.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Then run “kubectl proxy” on your local machine.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><br>
The Kubernetes dashboard will now be accessible in the browser at <a href="http://localhost:8001/ui">
http://localhost:8001/ui</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">What kubectl is doing is creating a tunnel into the API server that’s already authenticated to enable you to use the UI.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Some other Kubernetes distributions don’t require this because they support digest user authentication (or no authentication at all). Both of these methods are very insecure and will be removed in
 future Kubernetes versions anyway hence why we go with x509 certificates.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">----<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt">Rob de Canha-Knight</span></b><span lang="EN-US" style="font-size:10.0pt"><br>
EMEA Platform and Management Technical Strategist<br>
SUSE<br>
rob.knight@suse.com<br>
(M) +44 7392 087303<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">(TW) <a href="https://twitter.com/rssfed23">
<span style="color:#0563C1">rssfed23</span></a> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">----<o:p></o:p></span></p>
<p class="MsoNormal"><a href="http://www.susecon.com/"><span style="font-size:10.0pt;color:windowtext;text-decoration:none"><img border="0" width="468" height="59" id="_x0000_i1032" src="cid:image001.png@01D2FA73.F3E28F20" alt="ignature_1414394216"></span></a><span style="font-size:10.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Register with discount code isrrksc17 to save 25%!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">----<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><img border="0" width="62" height="35" id="_x0000_i1031" src="cid:image002.png@01D2FA73.F3E28F20" alt="nature_1566005168"></span><span style="font-size:10.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><img border="0" width="186" height="8" id="_x0000_i1030" src="cid:image003.jpg@01D2FA73.F3E28F20" alt="ignature_472913852"></span><span style="font-size:10.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><a href="https://twitter.com/suse"><span style="color:#0563C1;text-decoration:none"><img border="0" width="21" height="21" id="_x0000_i1029" src="cid:image004.png@01D2FA73.F3E28F20" alt="ignature_717231032"></span><span style="color:#0563C1"> </span></a></span><a href="https://www.linkedin.com/in/rssfed23/"><span style="font-size:10.0pt;color:windowtext;text-decoration:none"><img border="0" width="21" height="21" id="_x0000_i1028" src="cid:image005.png@01D2FA73.F3E28F20" alt="ignature_1195553855"></span></a><span style="font-size:10.0pt"> </span><a href="https://www.facebook.com/rssfed23"><span style="font-size:10.0pt;color:windowtext;text-decoration:none"><img border="0" width="21" height="21" id="_x0000_i1027" src="cid:image006.png@01D2FA73.F3E28F20" alt="ignature_1246601718"></span></a><span style="font-size:10.0pt"> <a href="https://plus.google.com/+SUSE/posts"><span style="color:#0563C1;text-decoration:none"><img border="0" width="21" height="21" id="_x0000_i1026" src="cid:image007.png@01D2FA73.F3E28F20" alt="ignature_2009975471"></span><span style="color:#0563C1"> </span></a></span><a href="https://www.youtube.com/user/susevideo"><span style="font-size:10.0pt;color:windowtext;text-decoration:none"><img border="0" width="21" height="21" id="_x0000_i1025" src="cid:image008.png@01D2FA73.F3E28F20" alt="ignature_1272807470"></span></a><span style="font-size:10.0pt"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black"><caasp-beta-bounces@lists.suse.com> on behalf of George Wu <georgewu@qnap.com><br>
<b>Date: </b>Tuesday, 11 July 2017 at 04:54<br>
<b>To: </b>"caasp-beta@lists.suse.com" <caasp-beta@lists.suse.com><br>
<b>Subject: </b>[caasp-beta] How to resolve 'Unauthorized' error message on kubernetes dashboard?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I installed 3 nodes by using SUSE-CaaS-Platform-1.0-DVD-x86_64-RC1-DVD1.iso. One node is admin, one is master and the other is worker. These nodes got IP address 192.168.10.107(admin), 192.168.10.108(master) and 192.168.10.109(node) by
 DHCP. After installation, master and worker shows their status on Velum dashboard. I downloaded kubectl config file from Velum dashboard (Cluster Status page) and copied it to master. The config is put at /root/.kube/config.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">When I tried to login kubernetes dashboard, I used the web address
<a href="https://192.168.10.108:6443">https://192.168.10.108:6443</a>. It shows 'Unauthorized' on browser.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">What's wrong with my installation?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">George<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>