Added Dashboard for kubernetes cluster
This commit is contained in:
16
README.md
16
README.md
@@ -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").*
|
||||
|
||||
Reference in New Issue
Block a user