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;
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 namespacekube-system
and changedports
fromport:443, targetPort:8443
toport:80, protocol:TCP, targetPort:9090
. - I have edited
deployment/kubernetes-dashboard
in namespacekube-system
and changedports
fromcontainerPort: 8443, protocol:TCP
tocontainerPort: 9090, protocol:TCP
(andlivenessProbe
analagously). I have also changedargs
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
add a comment |
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 namespacekube-system
and changedports
fromport:443, targetPort:8443
toport:80, protocol:TCP, targetPort:9090
. - I have edited
deployment/kubernetes-dashboard
in namespacekube-system
and changedports
fromcontainerPort: 8443, protocol:TCP
tocontainerPort: 9090, protocol:TCP
(andlivenessProbe
analagously). I have also changedargs
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
add a comment |
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 namespacekube-system
and changedports
fromport:443, targetPort:8443
toport:80, protocol:TCP, targetPort:9090
. - I have edited
deployment/kubernetes-dashboard
in namespacekube-system
and changedports
fromcontainerPort: 8443, protocol:TCP
tocontainerPort: 9090, protocol:TCP
(andlivenessProbe
analagously). I have also changedargs
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
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 namespacekube-system
and changedports
fromport:443, targetPort:8443
toport:80, protocol:TCP, targetPort:9090
. - I have edited
deployment/kubernetes-dashboard
in namespacekube-system
and changedports
fromcontainerPort: 8443, protocol:TCP
tocontainerPort: 9090, protocol:TCP
(andlivenessProbe
analagously). I have also changedargs
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
kubernetes kubernetes-dashboard
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
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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