Info |
---|
https://github.com/choisungwook/portfolio/tree/master/kubernetes/helm/dashboard-charts |
Info | |
---|---|
|
01. 개요
02. 사전조건
03. 설치
03-01. Git Clone
Code Block |
---|
git clone https://github.com/choisungwook/portfolio.git
cd portfolio/kubernetes/helm/dashboard-charts$ |
03-02. Install Helm Chart
Code Block |
---|
helm install dashboard -n dashboard -f values.yaml --dependency-update --create-namespace ./charts |
...
04. Connection Dashboard
04-01. Dashboard login Token 확인
Code Block |
---|
sansae@win10pro-worksp:/workspaces$ kubectl get secret -n dashboard
NAME TYPE DATA AGE
admin-user-token-2zp4f kubernetes.io/service-account-token 3 20h
dashboard-kubernetes-dashboard-certs Opaque 0 20h
dashboard-kubernetes-dashboard-token-q7v66 kubernetes.io/service-account-token 3 20h
default-token-j5kjp kubernetes.io/service-account-token 3 20h
kubernetes-dashboard-csrf Opaque 1 20h
kubernetes-dashboard-key-holder Opaque 2 20h
sh.helm.release.v1.dashboard.v1 helm.sh/release.v1 1 20h
sansae@win10pro-worksp:/workspaces$ kubectl describe secret admin-user-token-2zp4f -n dashboard
Name: admin-user-token-2zp4f
Namespace: dashboard
Labels: <none>
Annotations: kubernetes.io/service-account.name: admin-user
kubernetes.io/service-account.uid: 89e3e399-ef1a-4e68-b9d1-d3d303cb0984
Type: kubernetes.io/service-account-token
Data
====
ca.crt: 1761 bytes
namespace: 9 bytes
token: eyJhbGciOiJSUzI1NiIsImtpZCI6IlB0YVdwSmVoWmVuM1hma1Jqd0hBTG1tZVM0dVFzMlZLWmZEWFRzREZocm8... |
04-02. Port Forward Dashboard Service
Code Block |
---|
sansae@win10pro-worksp:/workspaces$ kubectl get svc -n dashboard NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE dashboard-kubernetes-dashboard NodePort 10.0.142.182 <none> 443:31631/TCP 22h sansae@win10pro-worksp:/workspaces$ kubectl port-forward svc/dashboard-kubernetes-dashboard 8443:443 -n dashboard Forwarding from 127.0.0.1:8443 -> 8443 Forwarding from [::1]:8443 -> 8443 |