강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

kim.dhdh님의 프로필 이미지
kim.dhdh

작성한 질문수

대세는 쿠버네티스 (초급~중급편)

Kubernetes Cluster 설치흐름 [v1.15] (음성없음)

데쉬보드에서 'Cluster-admin' not foud 로 12개 에러가 납니다.

작성

·

369

1

설치 영상 보고 따라 했는데..

데쉬보드 페이지는 열리는데 노드와 네임스페이스 정보를 못읽어오네요.

configmaps is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "configmaps" in API group "" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not foundclose
warningpersistentvolumeclaims is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "persistentvolumeclaims" in API group "" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not foundclose
warningsecrets is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "secrets" in API group "" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not foundclose
warningservices is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "services" in API group "" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not foundclose
warningingresses.extensions is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "ingresses" in API group "extensions" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not foundclose
warningdaemonsets.apps is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "daemonsets" in API group "apps" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not foundclose
warningpods is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "pods" in API group "" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not foundclose
warningevents is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "events" in API group "" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not foundclose
warningdeployments.apps is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "deployments" in API group "apps" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not foundclose
warningreplicasets.apps is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "replicasets" in API group "apps" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not foundclose
warningjobs.batch is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "jobs" in API group "batch" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not foundclose
warningcronjobs.batch is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "cronjobs" in API group "batch" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not foundclose
warningreplicationcontrollers is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "replicationcontrollers" in API group "" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not foundclose
warningstatefulsets.apps is forbidden: User "system:serviceaccount:kube-system:kubernetes-dashboard" cannot list resource "statefulsets" in API group "apps" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "Cluster-admin" not found

 

아래 설정 부분이 잘못된 건가요?

[root@localhost /]# cat << EOF | kubectl create -f -

> apiVersion: rbac.authorization.k8s.io/v1beta1

> kind: ClusterRoleBinding

> metadata:

>  name: kubernetes-dashboard

>  labels:

>    k8s-app: kubernetes-dashboard

> roleRef:

>   apiGroup: rbac.authorization.k8s.io

>   kind: ClusterRole

>   name: Cluster-admin

> subjects:

> - kind: ServiceAccount

>   name: kubernetes-dashboard

>   namespace: kube-system

> EOF

clusterrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created

확인 부탁드립니다. ^^

답변 1

0

일프로님의 프로필 이미지
일프로
지식공유자

안녕하세요!

제가 작성해놓은 아래 설치가이드를 보시면

https://kubetm.github.io/practice/appendix/installation_case2/

6-2-1) Dashboard 설치

해당 설정은 교육목적으로 권한 설정을 모두 해제하는 방법이기 때문에 프로젝트에서 사용하실때는 이점 유의바래요
>https://github.com/kubernetes/dashboard

kubectl apply -f https://kubetm.github.io/documents/appendix/kubetm-dashboard-v1.10.1.yaml

이렇게 Dashboard를 설치하게 되어 있습니다.

동영상은 예전버전이고 자료실에 내용이 계속 업데이트가 되기 때문에, 강의자료를 참고하시는게 좋고요.

위 내용을 봤을때 문제점은 name : Cluster-admin 에서 C가 대문자인게 문제로 보입니다.

감사합니다~!

kim.dhdh님의 프로필 이미지
kim.dhdh

작성한 질문수

질문하기