1. dashboard,admin-rbac, heapster 설치
1 | git clone https://github.com/DragOnMe/k8s-1.8-dashboard-heapster-mod.git |
kubernetes-dashboard.yaml 수정
- image 변경 (1.8.1 -> 1.8.3)
- service nodeport 설정
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23spec:
containers:
- name: kubernetes-dashboard
image: k8s.gcr.io/kubernetes-dashboard-amd64:v1.8.3
//==========================================================
kind: Service
apiVersion: v1
metadata:
labels:
k8s-app: kubernetes-dashboard
name: kubernetes-dashboard
namespace: kube-system
spec:
# Added NodePort
type: NodePort
ports:
- port: 443
targetPort: 8443
# Added nodePort: 30000
nodePort: 30000
selector:
k8s-app: kubernetes-dashboard
2. dashboard 접근 token 조회
1 | [root@localhost]# kubectl -n kube-system get secret | grep kubernetes-dashboard-admin |
3. 서버local이 아닌 브라우저에서 접근하기위해 nginx수정
1 | server { |