inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

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

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

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

374

kim.dhdh

작성한 질문수 1

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

확인 부탁드립니다. ^^

docker kubernetes

답변 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가 대문자인게 문제로 보입니다.

감사합니다~!

yml 작성하다가 에러 발생해서 문의 드립니다.

0

36

2

설치수업중에 질문드립니다.

1

52

2

기초다지기 설치 문의드립니다.

1

103

4

HPA 부분 Auto Scaler 설치하는 링크가 없습니다!!

1

63

3

클러스터 초기화 및 팟 네트워크 세팅시 문제가 있습니다

1

100

1

환경 구성에 있어서 질문드립니다

1

91

2

configMap 파일생성

1

75

2

dashboard에서 pod 생성이 되지 않습니다.

1

75

2

nodePort 서비스 접근 Client sent an HTTP request to an HTTPS server

1

74

2

대시보드 화면이 달라요 ㅠㅠ

1

58

2

대시보드 접근이 안됩니다!

1

97

2

Ingress실습에 난관이 있습니다

1

65

2

master 노드에서 ssh 로그인 창이 안뜨는 오류

1

82

3

안녕하세요 일프로님 궁금한 거 있습니다

0

49

1

7강 마지막 대시 보드 출력에 관한 문제

1

57

2

Could not resolve host: externalname1; Unknown error

0

59

2

Failed to create pod sandbox

1

88

2

자료실을 못 찾겠습니다 ㅜ ㅡ ㅜ

0

57

2

0/3 nodes are available

1

57

2

Back-off restarting fail~~

1

98

4

쿠버네티스 대시보드 접속 문제

1

89

2

설치관련 질문입니다

1

113

2

raw.githubusercontent.com 에 대한 질문

1

135

2

worker노드 추가시에

1

68

1