Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- Java
- generic programming
- Inbound
- singletone
- shebang
- public static final
- constructor
- arraycopy
- 파이참
- 엔드포인트
- down casting
- 자바
- Stream
- 깊은 복사
- 얕은 복사
- lambda
- Wrapper class
- identityHashCode
- extends
- finalize
- Up Casting
- has-a
- 스트림
- access modifier
- parameter group
- pycharm
- dbeaver
- 내부클래스
- 셔뱅
- node.js
Archives
- Today
- Total
٩(๑•̀o•́๑)و
11. kubernetes dashboard 생성 본문
1. 대시보드 배포
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml
2. 로그인 계정 생성
# Service Account 생성
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kubernetes-dashboard
# ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: admin-user
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: admin-user
namespace: kubernetes-dashboard
# get token
kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}"
3. 대시보드 실행
kubectl proxy
# 접속url
# http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
+) kubectl proxy 로 접속시엔 해당 커멘드가 실행된 머신에서만 접근이 가능하며,
이는 kubectl proxy의 특성때문
# 어디까지 했나
# 참고
https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/
Deploy and Access the Kubernetes Dashboard
Deploy the web UI (Kubernetes Dashboard) and access it.
kubernetes.io
https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md
'Container Infrastructure > Side Project_202108' 카테고리의 다른 글
13. Helm (0) | 2021.08.29 |
---|---|
12. Docker Container (0) | 2021.08.28 |
10. HPA(Horizontal Pod Autoscaler) (0) | 2021.08.28 |
9. MetalLB 로드밸런서 서비스 (0) | 2021.08.28 |
8. 쿠버네티스 컴포넌트 - 서비스 (0) | 2021.08.27 |