Difference between revisions of "Kubernetes dashboard"

From wikieduonline
Jump to navigation Jump to search
 
(40 intermediate revisions by 4 users not shown)
Line 3: Line 3:
 
* http://127.0.0.1:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
 
* http://127.0.0.1:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
  
== Installation using helm ==
+
* https://127.0.0.1:8443/
[[helm repo add]] kubernetes-dashboard https://kubernetes.github.io/dashboard/
 
[[helm install]] my-release kubernetes-dashboard/kubernetes-dashboard
 
  
== Installation using kubectl apply ==
+
== Installation ==
[[kubectl apply]] -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml
+
=== Installation using [[helm]] ===
namespace/kubernetes-dashboard created
+
* <code>[[helm repo add]] kubernetes-[[dashboard]] https://kubernetes.github.io/dashboard/</code>
serviceaccount/kubernetes-dashboard created
+
* <code>[[helm install my-release kubernetes-dashboard/kubernetes-dashboard]]</code>
service/kubernetes-dashboard created
+
* <code>[[helm install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --set=service.externalPort=8080,resources.limits.cpu=200m]]</code>
secret/kubernetes-dashboard-certs created
+
 
secret/kubernetes-dashboard-csrf created
+
=== [[Installation Kubernetes dashboard using kubectl apply]] ===
  secret/kubernetes-dashboard-key-holder created
+
 
  configmap/kubernetes-dashboard-settings created
+
=== [[Minikube]] ===
role.rbac.authorization.k8s.io/kubernetes-dashboard created
+
* <code>[[minikube addons enable dashboard]]</code>
clusterrole.rbac.authorization.k8s.io/kubernetes-dashboard created
+
 
rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created
+
== Related ==
  clusterrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created
+
 
deployment.apps/kubernetes-dashboard created
+
  k get svc -A | grep kubernetes-dashboard
service/dashboard-metrics-scraper created
+
  kubernetes-dashboard   [[dashboard-metrics-scraper]]  ClusterIP  10.111.46.179    <none>        8000/TCP               
deployment.apps/dashboard-metrics-scraper created
+
8m19s
 +
kubernetes-dashboard   kubernetes-dashboard       ClusterIP  10.96.35.228    <none>        80/TCP                 
 +
8m19s
 +
 
 +
  [[k logs kubernetes-dashboard-XXXXXXX -n kubernetes-dashboard]]
 +
 
 +
* <code>[[kubectl describe pod my-release-kubernetes-dashboard]]</code>
  
[[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]]",
+
   [["kind": "Status"]],
 
   "apiVersion": "v1",
 
   "apiVersion": "v1",
 
   "metadata": {
 
   "metadata": {
Line 38: Line 36:
 
   },
 
   },
 
   "status": "Failure",
 
   "status": "Failure",
   "message": "no endpoints available for service \"kubernetes-dashboard\"",
+
   "message": "[[no endpoints available for service]] \"kubernetes-dashboard\"",
   "reason": "ServiceUnavailable",
+
   "reason": "[[ServiceUnavailable]]",
 
   "code": 503
 
   "code": 503
 
  }
 
  }
  
Failure
+
Unauthorized
 
  {
 
  {
 
   "kind": "Status",
 
   "kind": "Status",
Line 76: Line 74:
 
== Related terms ==
 
== Related terms ==
 
* <code>[[minikube dashboard]]</code>
 
* <code>[[minikube dashboard]]</code>
 +
* <code>[[minikube addons list]]</code>
 
* <code>[[kubectl proxy]]</code>
 
* <code>[[kubectl proxy]]</code>
* [[Kubernetes Metrics Server]]
+
* [[Kubernetes Metrics Server (KMS)]]
 +
* <code>[[kubectl get services]]</code>
 +
* <code>[[kubectl get secret]]</code>
 +
* <code>[[helm install]]</code>, <code>[[helm uninstall]]</code>
 +
* [[Horizontal Pod Autoscaler (HPA)]]
 +
* [[kubeconfig]]
 +
* [[GKE]]: <code>[[addonsConfig]]</code>
 +
* [[Lens]]
  
 
== See also ==
 
== See also ==
* {{kubectl get}}
+
* {{Kubernetes dashboard}}
 
* {{Kubernetes RBAC}}
 
* {{Kubernetes RBAC}}
* {{K8s}}
 
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Latest revision as of 17:33, 23 January 2024

Installation[edit]

Installation using helm[edit]

Installation Kubernetes dashboard using kubectl apply[edit]

Minikube[edit]

Related[edit]

k get svc -A | grep kubernetes-dashboard
kubernetes-dashboard   dashboard-metrics-scraper   ClusterIP   10.111.46.179    <none>        8000/TCP                 
8m19s
kubernetes-dashboard   kubernetes-dashboard        ClusterIP   10.96.35.228     <none>        80/TCP                   
8m19s
k logs kubernetes-dashboard-XXXXXXX -n kubernetes-dashboard


{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {
    
  },
  "status": "Failure",
  "message": "no endpoints available for service \"kubernetes-dashboard\"",
  "reason": "ServiceUnavailable",
  "code": 503
}

Unauthorized

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


NotFound

{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {
    
  },
  "status": "Failure",
  "message": "services \"kubernetes-dashboard\" not found",
  "reason": "NotFound",
  "details": {
    "name": "kubernetes-dashboard",
    "kind": "services"
  },
  "code": 404
}

Related terms[edit]

See also[edit]

Advertising: