<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kubernetes Dashboard Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/kubernetes-dashboard/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/kubernetes-dashboard/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:07:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to setup Kubernetes Dashboard in EKS using NodePort?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-setup-kubernetes-dashboard-in-eks-using-nodeport/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-setup-kubernetes-dashboard-in-eks-using-nodeport/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 10 Aug 2018 11:11:49 +0000</pubDate>
				<category><![CDATA[Kubernetes]]></category>
		<category><![CDATA[Dashboard]]></category>
		<category><![CDATA[EKS]]></category>
		<category><![CDATA[kubernetes]]></category>
		<category><![CDATA[Kubernetes Dashboard]]></category>
		<category><![CDATA[NodePort]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5136</guid>

					<description><![CDATA[<p>How to setup Kubernetes Dashboard in EKS using NodePort? Step 1: Deploy the Dashboard # Deploy the Kubernetes dashboard to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-setup-kubernetes-dashboard-in-eks-using-nodeport/">How to setup Kubernetes Dashboard in EKS using NodePort?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-5146" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/kubernetes.png" alt="" width="600" height="315" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/kubernetes.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/kubernetes-300x158.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>How to setup Kubernetes Dashboard in EKS using NodePort?</strong></p>
<p><strong>Step 1: Deploy the Dashboard</strong><br />
# Deploy the Kubernetes dashboard to your cluster:</p>
<pre class="brush: plain; title: ; notranslate">kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml</pre>
<p># Deploy heapster to enable container cluster monitoring and performance analysis on your cluster:</p>
<pre class="brush: plain; title: ; notranslate">$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/heapster.yaml</pre>
<p># Deploy the influxdb backend for heapster to your cluster:</p>
<pre class="brush: plain; title: ; notranslate">$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/influxdb.yaml</pre>
<p># Create the heapster cluster role binding for the dashboard:</p>
<pre class="brush: plain; title: ; notranslate">$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/rbac/heapster-rbac.yaml</pre>
<p><strong>Step 2: Create an eks-admin Service Account and Cluster Role Binding</strong><br />
# Create a file called eks-admin-service-account.yaml with the text below:</p>
<pre class="brush: plain; title: ; notranslate">
vi eks-admin-service-account.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  name: eks-admin
  namespace: kube-system

$ kubectl apply -f eks-admin-service-account.yaml

vi eks-admin-cluster-role-binding.yaml

apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
  name: eks-admin
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: eks-admin
  namespace: kube-system

$ kubectl apply -f eks-admin-cluster-role-binding.yaml
</pre>
<p><strong>Step 3: Retrieve an authentication token </strong><br />
Retrieve an authentication token for the eks-admin service account. Copy the &lt;authentication_token&gt; value from the output. You use this token to connect to the dashboard.</p>
<pre class="brush: plain; title: ; notranslate">kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep eks-admin | awk '{print $1}')</pre>
<p><strong>Step 4: Connect to the Dashboard Via Node Port</strong><br />
Retrieve an authentication token for the eks-admin service account. Copy the &lt;authentication_token&gt; value from the output. You use this token to connect to the dashboard.</p>
<pre class="brush: plain; title: ; notranslate">
$ kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep eks-admin | awk '{print $1}')
$ kubectl get pods --all-namespaces
$ kubectl get pods --namespace=kube-system
$ kubectl get svc --all-namespaces

$ kubectl edit svc/kubernetes-dashboard --namespace=kube-system
or
$ kubectl -n kube-system edit service kubernetes-dashboard
Just change &quot;type: NodePort&quot; only

# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: v1
kind: Service
metadata:
  creationTimestamp: 2018-07-27T10:22:50Z
  labels:
    k8s-app: kubernetes-dashboard
  name: kubernetes-dashboard
  namespace: kube-system
  resourceVersion: &quot;3288196&quot;
  selfLink: /api/v1/namespaces/kube-system/services/kubernetes-dashboard
  uid: 03f2f747-9187-11e8-9432-02b761c0deac
spec:
  clusterIP: 10.100.194.75
  externalTrafficPolicy: Cluster
  ports:
  - nodePort: 30530
    port: 443
    protocol: TCP
    targetPort: 8443
  selector:
    k8s-app: kubernetes-dashboard
  sessionAffinity: None
  type: NodePort
status:
  loadBalancer: {}

$ kubectl describe pods kubernetes-dashboard-7d5dcdb6d9-mt9b9 --namespace=kube-system 
#Find which node is running and get a Port of SVC

$ kubectl get svc --all-namespaces
$ kubectl get pods --all-namespaces
$ kubectl describe pods kubernetes-dashboard-7d5dcdb6d9-h9dcb --namespace=kube-system
</pre>
<p><strong>Step 5: Connect to the Dashboard Via ClustorIP and Proxy</strong><br />
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/</p>
<p>https://10.16.39.28:30178/</p>
<p>&nbsp;</p>
<p><strong>IMPORTANT &#8211; Kubernetes Dashboard should be HTTPS</strong></p>
<p>&nbsp;</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-setup-kubernetes-dashboard-in-eks-using-nodeport/">How to setup Kubernetes Dashboard in EKS using NodePort?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-setup-kubernetes-dashboard-in-eks-using-nodeport/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
