Kubernetes Dashboard does not accept service account's token over HTTP: Authentication failed. Please try againissue on arm64: no endpoints,code:503unable to access kubernetes dashboard via tokenwhich token to use for kubernetes-dashboard login with Google cloud platformKubernetes dashboard pods is not runningNot able to access minikube dashboardKubernetes Dashboard v1.8.3 deploymentK8s Dashboard not logging in (k8s version 1.11)kubernetes-dashboard exposing through istio [1.0.0] ingress --istio-ingressgatewayHow to access Kubernetes Dashboard from outside networkKubernetes Dashboard - How to lock down 8080 access

Why were there so many icicles in this Space Shuttle launch area? (Challenger disaster)

When Conservative MPs lose the whip, do they retain the right to vote in leadership elections?

Friend is very nitpicky about side comments I don't intend to be taken too seriously

How should Thaumaturgy's "three times as loud as normal" be interpreted?

How strong is aircraft-grade spruce?

How to convert P2O5 concentration to H3PO4 concentration?

How is the phase of 120V AC established in a North American home?

Protecting programs on external drives with the same priviledges as in Program Files

How to restrain your dragon?

Furthest distance half the diameter?

Schrodinger's Cat Isn't Meant To Be Taken Seriously, Right?

Supervisor wants me to support a diploma-thesis SW tool after I graduated

Python implementation of atoi

Bit floating sequence

Did the Byzantines ever attempt to move their capital to Rome?

How to improvise or make pot grip / pot handle

Project Euler problem #112

Would scoring well on a non-required GRE Mathematics Subject Test make me more competitive?

When does order matter in probability?

Proof for integral representation of Lambert W function

Why are UK MPs allowed to abstain (but it counts as a no)?

What's the biggest difference between these two photos?

Leaving the USA for 10 yrs when you have asylum

Why are some hotels asking you to book through Booking.com instead of matching the price at the front desk?



Kubernetes Dashboard does not accept service account's token over HTTP: Authentication failed. Please try again


issue on arm64: no endpoints,code:503unable to access kubernetes dashboard via tokenwhich token to use for kubernetes-dashboard login with Google cloud platformKubernetes dashboard pods is not runningNot able to access minikube dashboardKubernetes Dashboard v1.8.3 deploymentK8s Dashboard not logging in (k8s version 1.11)kubernetes-dashboard exposing through istio [1.0.0] ingress --istio-ingressgatewayHow to access Kubernetes Dashboard from outside networkKubernetes Dashboard - How to lock down 8080 access






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have installed Kubernetes Dashboard on a Kubernetes 1.13 cluster as described here:



kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml


I've also configured the dashboard to serve its content insecurely because I want to expose it via an Ingress at https://my-cluster/dashboard where the TLS connection will be terminated at the ingress controller.



  • I have edited service/kubernetes-dashboard in namespace kube-system and changed ports from port:443, targetPort:8443 to port:80, protocol:TCP, targetPort:9090.

  • I have edited deployment/kubernetes-dashboard in namespace kube-system and changed
    ports from containerPort: 8443, protocol:TCP to containerPort: 9090, protocol:TCP (and livenessProbe analagously). I have also changed args from [ --auto-generate-certificates ] to [ --enable-insecure-login ].

This allows me to contact the dashboard from a cluster node via HTTP at the service's cluster IP address and port 80 (no Ingress is configured yet).



I have also created a sample user as explained here and extracted its token. The token works e.g. in kubectl --token $token get pod --all-namespaces, so it apparently possesses cluster-admin privileges. However, if I enter the same token into the dashboards' login screen I get "Authentication failed. Please try again.".



What could be the reason why? How can I further diagnose and solve the issue? (The dashboard's log does not provide any help at this point.)



UPDATE If I keep the dashboard's standard configuration (i.e. for secure access over HTTPS) the same token is accepted.










share|improve this question
































    1















    I have installed Kubernetes Dashboard on a Kubernetes 1.13 cluster as described here:



    kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml


    I've also configured the dashboard to serve its content insecurely because I want to expose it via an Ingress at https://my-cluster/dashboard where the TLS connection will be terminated at the ingress controller.



    • I have edited service/kubernetes-dashboard in namespace kube-system and changed ports from port:443, targetPort:8443 to port:80, protocol:TCP, targetPort:9090.

    • I have edited deployment/kubernetes-dashboard in namespace kube-system and changed
      ports from containerPort: 8443, protocol:TCP to containerPort: 9090, protocol:TCP (and livenessProbe analagously). I have also changed args from [ --auto-generate-certificates ] to [ --enable-insecure-login ].

    This allows me to contact the dashboard from a cluster node via HTTP at the service's cluster IP address and port 80 (no Ingress is configured yet).



    I have also created a sample user as explained here and extracted its token. The token works e.g. in kubectl --token $token get pod --all-namespaces, so it apparently possesses cluster-admin privileges. However, if I enter the same token into the dashboards' login screen I get "Authentication failed. Please try again.".



    What could be the reason why? How can I further diagnose and solve the issue? (The dashboard's log does not provide any help at this point.)



    UPDATE If I keep the dashboard's standard configuration (i.e. for secure access over HTTPS) the same token is accepted.










    share|improve this question




























      1












      1








      1








      I have installed Kubernetes Dashboard on a Kubernetes 1.13 cluster as described here:



      kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml


      I've also configured the dashboard to serve its content insecurely because I want to expose it via an Ingress at https://my-cluster/dashboard where the TLS connection will be terminated at the ingress controller.



      • I have edited service/kubernetes-dashboard in namespace kube-system and changed ports from port:443, targetPort:8443 to port:80, protocol:TCP, targetPort:9090.

      • I have edited deployment/kubernetes-dashboard in namespace kube-system and changed
        ports from containerPort: 8443, protocol:TCP to containerPort: 9090, protocol:TCP (and livenessProbe analagously). I have also changed args from [ --auto-generate-certificates ] to [ --enable-insecure-login ].

      This allows me to contact the dashboard from a cluster node via HTTP at the service's cluster IP address and port 80 (no Ingress is configured yet).



      I have also created a sample user as explained here and extracted its token. The token works e.g. in kubectl --token $token get pod --all-namespaces, so it apparently possesses cluster-admin privileges. However, if I enter the same token into the dashboards' login screen I get "Authentication failed. Please try again.".



      What could be the reason why? How can I further diagnose and solve the issue? (The dashboard's log does not provide any help at this point.)



      UPDATE If I keep the dashboard's standard configuration (i.e. for secure access over HTTPS) the same token is accepted.










      share|improve this question
















      I have installed Kubernetes Dashboard on a Kubernetes 1.13 cluster as described here:



      kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml


      I've also configured the dashboard to serve its content insecurely because I want to expose it via an Ingress at https://my-cluster/dashboard where the TLS connection will be terminated at the ingress controller.



      • I have edited service/kubernetes-dashboard in namespace kube-system and changed ports from port:443, targetPort:8443 to port:80, protocol:TCP, targetPort:9090.

      • I have edited deployment/kubernetes-dashboard in namespace kube-system and changed
        ports from containerPort: 8443, protocol:TCP to containerPort: 9090, protocol:TCP (and livenessProbe analagously). I have also changed args from [ --auto-generate-certificates ] to [ --enable-insecure-login ].

      This allows me to contact the dashboard from a cluster node via HTTP at the service's cluster IP address and port 80 (no Ingress is configured yet).



      I have also created a sample user as explained here and extracted its token. The token works e.g. in kubectl --token $token get pod --all-namespaces, so it apparently possesses cluster-admin privileges. However, if I enter the same token into the dashboards' login screen I get "Authentication failed. Please try again.".



      What could be the reason why? How can I further diagnose and solve the issue? (The dashboard's log does not provide any help at this point.)



      UPDATE If I keep the dashboard's standard configuration (i.e. for secure access over HTTPS) the same token is accepted.







      kubernetes kubernetes-dashboard






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 28 at 6:17









      Eduardo Baitello

      1,8133 gold badges11 silver badges27 bronze badges




      1,8133 gold badges11 silver badges27 bronze badges










      asked Mar 27 at 12:46









      rookie099rookie099

      6531 silver badge12 bronze badges




      6531 silver badge12 bronze badges

























          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55377568%2fkubernetes-dashboard-does-not-accept-service-accounts-token-over-http-authenti%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.




















          draft saved

          draft discarded















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55377568%2fkubernetes-dashboard-does-not-accept-service-accounts-token-over-http-authenti%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript