Difference between revisions of "Kubernetes dashboard"

From wikieduonline
Jump to navigation Jump to search
Line 27: Line 27:
 
  Starting to serve on 127.0.0.1:8001
 
  Starting to serve on 127.0.0.1:8001
 
   
 
   
 +
== Connection ==
 
  Connect to:
 
  Connect to:
 
  http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
 
  http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
  
 
  {
 
  {
   "kind": "Status",
+
   "[[kind]]": "Status",
 
   "apiVersion": "v1",
 
   "apiVersion": "v1",
 
   "metadata": {
 
   "metadata": {
Line 40: Line 41:
 
   "reason": "ServiceUnavailable",
 
   "reason": "ServiceUnavailable",
 
   "code": 503
 
   "code": 503
 +
}
 +
 +
 +
{
 +
  "kind": "Status",
 +
  "apiVersion": "v1",
 +
  "metadata": {
 +
   
 +
  },
 +
  "status": "Failure",
 +
  "message": "Unauthorized",
 +
  "reason": "Unauthorized",
 +
  "code": 401
 
  }
 
  }
  

Revision as of 17:41, 3 December 2021

Installation using helm

helm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/
helm install my-release kubernetes-dashboard/kubernetes-dashboard

Installation using kubectl apply

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml
namespace/kubernetes-dashboard created
serviceaccount/kubernetes-dashboard created
service/kubernetes-dashboard created
secret/kubernetes-dashboard-certs created
secret/kubernetes-dashboard-csrf created
secret/kubernetes-dashboard-key-holder created
configmap/kubernetes-dashboard-settings created
role.rbac.authorization.k8s.io/kubernetes-dashboard created
clusterrole.rbac.authorization.k8s.io/kubernetes-dashboard created
rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created
clusterrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created
deployment.apps/kubernetes-dashboard created
service/dashboard-metrics-scraper created
deployment.apps/dashboard-metrics-scraper created
kubectl proxy
Starting to serve on 127.0.0.1:8001

Connection

Connect to:
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {
    
  },
  "status": "Failure",
  "message": "no endpoints available for service \"kubernetes-dashboard\"",
  "reason": "ServiceUnavailable",
  "code": 503
}


{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {
    
  },
  "status": "Failure",
  "message": "Unauthorized",
  "reason": "Unauthorized",
  "code": 401
}

Related terms

See also

Advertising: