Cloud Native 3 min read

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.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
How to Set Up a Secure Kubernetes Dashboard Without RBAC

Kubernetes Dashboard Configuration

Installation Preparation

Download the dashboard YAML file:

wget -O kube-dashboard.yaml https://git.io/kube-dashboard-no-rbac
This 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.3
You 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:8080
Update 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   2d

Access the dashboard in a browser at http://192.168.56.12:8080/ui and view the screenshot below:

Kubernetes Dashboard screenshot
Kubernetes Dashboard screenshot
Kubernetes Dashboard illustration
Kubernetes Dashboard illustration
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Cloud NativeDockerKubernetesDashboard
MaGe Linux Operations
Written by

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.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.