Added Dashboard for kubernetes cluster

This commit is contained in:
2026-03-08 13:24:06 +01:00
parent ef43cde916
commit 8db7202686
4 changed files with 85 additions and 2 deletions

View File

@@ -94,3 +94,19 @@ After the playbook completes:
kubectl get pods -A
```
Ensure `coredns` and `kube-flannel` are running.
## Kubernetes Dashboard
A dashboard has been installed and is accessible via NodePort on the master node.
1. **Get the Token**:
Run this command on the master node to get your login token:
```bash
kubectl get secret admin-user-token -n kubernetes-dashboard -o jsonpath={".data.token"} | base64 -d
```
2. **Access the Dashboard**:
Open your browser and navigate to:
`https://<master-ip>:30443`
*Note: Since it uses a self-signed certificate, you will need to bypass the browser security warning (usually click "Advanced" -> "Proceed").*