Kubernetes Dashboard UI (User Interface) Resources
After executing the command, kubectl creates a namespace, service account, config map, pods, cluster role, service, RBAC, and deployments resources representing the Kubernetes dashboard.
- Namespace: Within a Kubernetes cluster, a namespace enables resource organization and isolation. The “Kubernetes-dashboard” namespace is established in this instance to house all resources related to the dashboard.
- Service Account: A service account gives a pod or group of pods an identity to communicate with the Kubernetes API server. In this instance, the dashboard pod will utilize the “Kubernetes-dashboard” service account to access the Kubernetes API.
- Secret: In a Kubernetes cluster, private information like TLS keys and certificates is kept in a secret. The TLS certificate and key used by the dashboard pod to secure its web traffic are created in this instance and stored in the “Kubernetes-dashboard-certs” secret
- ConfigMap: A config map is used to store configuration data that can be accessed by a pod or group of pods running in a Kubernetes cluster. In this case, the “Kubernetes-dashboard-settings” config map is created to store the configuration settings for the Kubernetes dashboard.
- Pods: The smallest deployable unit in Kubernetes, or pod, stands for a single instance of a process that is currently operating in a cluster. The Kubernetes dashboard is configured as a pod in this example, running in the “Kubernetes-dashboard” namespace, connecting to the Kubernetes API server using the “Kubernetes-dashboard-certs” secret and the “Kubernetes-dashboard-settings” config map, and being deployed as a pod.
- Cluster Role: A cluster role is used to specify a set of permissions that can be given to a user or group of users throughout the whole Kubernetes cluster. To specify the rights needed by the dashboard to access and manage Kubernetes resources, the “Kubernetes-dashboard” cluster role is created in this instance.
- Services: A group of pods running in a Kubernetes cluster are exposed as a network service using a service. In this instance, the dashboard pod executing in the “Kubernetes-dashboard” namespace is given network access by the “Kubernetes-dashboard” service.
- RBAC: Role-based access control (RBAC) is a method for restricting access to Kubernetes resources based on user roles and permissions. In this instance, the “Kubernetes-dashboard” service account is configured with RBAC rules that allow access to and management of the Kubernetes resources needed by the dashboard.
- Deployments: In a Kubernetes cluster, a deployment is used for handling the scaling, rolling updates, and rollbacks of an assortment of pods. In the present instance, the “Kubernetes-dashboard” deployment is employed to manage the dashboard pod that is operating in the “Kubernetes-dashboard” namespace.
Run the kubectl get command to see if all the resources were successfully installed.
kubectl get all -n Kubernetes-dashboard
Kubernetes – Dashboard Setup
Kubernetes – Dashboard Setup is a web-based user interface that offers a summary of your Kubernetes cluster. You may manage your resources using a graphical interface and view information about your pods, deployments, services, and more with the dashboard. How do you maintain track of all the containers you deploy using Kubernetes when there are hundreds of them? That won’t work with a command-line interface. Everything must be represented visually. Welcome to the Kubernetes dashboard. The official web-based UI for Kubernetes, known as Kubernetes Dashboard, consists of a collection of services that make cluster management easier. You will discover how to set up the Kubernetes Dashboard on an Ubuntu computer step-by-step in this guide.