...
| Code Block | ||||
|---|---|---|---|---|
| ||||
kubectl apply -f dashboard-ingress.yaml |
Check the address exposed and add in the /etc/hosts as dashboard.da
| Code Block | ||||
|---|---|---|---|---|
| ||||
kubectl get ingress -n kubernetes-dashboard |
🧠 You must configure a DNS entry or
/etc/hostspointingdashboard.dato your ingress controller IP.
...
Copy the token and use it to log in at https://dashboard.da
54 🔒 Create a TLS Secret
If you're not using a wildcard or auto TLS (e.g. via cert-manager), you can create your own TLS secret:
| Code Block | ||||
|---|---|---|---|---|
| ||||
kubectl -n kubernetes-dashboard create secret tls dashboard-tls \ --cert=/path/to/cert.crt \ --key=/path/to/cert.key |
...