[AWS EKS] Setup Kubenetes Dashboard

panupongdeve

DevOpsCloudCloud

Posted on May 13, 2020

[AWS EKS] Setup Kubenetes Dashboard

step 0 - install package in linuux

sudo apt install jq curl

step 1 - deploy the K8s Metrics Server

DOWNLOAD_URL=$(curl --silent "https://api.github.com/repos/kubernetes-sigs/metrics-server/releases/latest" | jq -r .tarball_url)

DOWNLOAD_VERSION=$(grep -o '[^/v]*$' <<< $DOWNLOAD_URL)


curl -Ls $DOWNLOAD_URL -o metrics-server-$DOWNLOAD_VERSION.tar.gz


mkdir metrics-server-$DOWNLOAD_VERSION


tar -xzf metrics-server-$DOWNLOAD_VERSION.tar.gz --directory metrics-server-$DOWNLOAD_VERSION --strip-components 1


kubectl apply -f metrics-server-$DOWNLOAD_VERSION/deploy/1.8+/

step 2 - deploy the K8s dashboard

latest release of v2.xxx here: https://github.com/kubernetes/dashboard/releases


export DASHBOARD_RELEASE={{ latest releaseversion }}


kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/$DASHBOARD_RELEASE/aio/deploy/recommended.yaml


kubectl apply -f admin-service-account.yaml

step 3 - access the dashboard


kubectl -n kube-system describe secret $(kubectl -n kube-system get secret| grep {{ service_account_name }} | awk '{print $1}')

copy token


kubectl proxy --address='0.0.0.0' --accept-hosts='^*$'

open browser


http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#!/login

šŸ’– šŸ’Ŗ šŸ™… šŸš©
panupongdeve
DevOpsCloudCloud

Posted on May 13, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related