How to Set Up a Secure Kubernetes Dashboard Without RBAC
Learn step-by-step how to download the Kubernetes dashboard YAML, prepare offline images, modify the deployment to use a private registry, configure the API server address, create the service, verify its status, and access the dashboard via a browser, all without RBAC.
Kubernetes Dashboard Configuration
Installation Preparation
Download the dashboard YAML file:
wget -O kube-dashboard.yaml https://git.io/kube-dashboard-no-rbacThis version does not include RBAC.
Prepare the image (requires internet access):
docker save gcr.io/google_containers/kubernetes-dashboard-amd64:v1.6.3 >1.6.3.tar
docker load < 1.6.3.tar
docker tag gcr.io/google_containers/kubernetes-dashboard-amd64:v1.6.3 harbor.biglittleant.cn/test/kubernetes-dashboard-amd64:v1.6.3You need network connectivity; otherwise the dashboard image cannot be downloaded.
Modify the deployment to use the private image and set the API server address:
spec:
containers:
- name: kubernetes-dashboard
image: harbor.biglittleant.cn/test/kubernetes-dashboard-amd64:v1.6.3
ports:
- containerPort: 9090
protocol: TCP
args:
- --apiserver-host=http://192.168.56.12:8080Update the image to the offline address and configure the apiserver-host.
Create the dashboard service: kubectl create -f kube-dashboard.yaml Verify that the service is running:
kubectl get services --all-namespaces
kube-system kubernetes-dashboard 10.254.174.119 <none> 80/TCP 2dAccess the dashboard in a browser at http://192.168.56.12:8080/ui and view the screenshot below:
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
