Code Monkey home page Code Monkey logo

kubernetes-dashboard's Introduction

Last Modified : Dec 28.2020

K8s Dashboard with NodePort in 3 simple steps


  1. Clone IRSOLS K8s-Dashboard repo to deploy it with automation: git clone https://github.com/irsols-devops/kubernetes-dashboard.git
  2. Read through the YAML files and apply to your cluster to install & configure dashboard properly: kubectl apply -f ./kubernetes-dashboard/
  3. Get the URL (IP:Port) and token to login to dashboard using get-dash.sh

Enjoy your shiny new cluster dashboard !

Manual DIY (Optional):

Download the official/recommended K8s dashboard yaml file and modify it. Modified version is included in this repo. If you'd rather do modification yourself , perform following : wget https://raw.githubusercontent.com/kubernetes/dashboard/v2.1.0/aio/deploy/recommended.yaml change the clusterIp to Nodeport as changed in the "kubernetes-dashboard-deployment.yml" file

Details of K8s dashboard manual steps with NodePort

  1. Create the deployment : kubectl apply -f kubernetes-dashboard-deployment.yml

  2. Create service account admin role : kubectl apply -f service-account-admin.yml

  3. Perform cluster role binding : kubectl apply -f rbac-clusterRoleBinding-admin.yml

  4. Ensure K8s deployment and service are up and running : a. kubectl get deployments -n kubernetes-dashboard b. If this is a multi-node cluster then figure out which node the dashboard pods are running on : kubectl get pods --namespace=kubernetes-dashboard -o wide c. Double check that there are no issues in the services and its not in CrashLoopBack state:

  5. Get the NodePort Dashboard is exposed on using following : kubectl get services --namespace=kubernetes-dashboard -o wide

  6. Get service token and store in a local file using : kubectl -n kubernetes-dashboard describe secret $(kubectl -n kubernetes-dashboard get secret | grep admin-user | awk '{print $1}')

  7. Open up a browser that allows self-signed certificate using webpages ( e.g. Firefox ) and use the node IP:Nodeport combination to access the dashboard . e.g. https://:<node_port> will be https://10.10.0.4:32005

  8. In the login window use the token from previous step

kubernetes-dashboard's People

Contributors

irsols-devops avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.