inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

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

Longhorn 설치 오류 (중급편 volume 실습 강의)

586

노홍민

작성한 질문수 1

1

 

1.22v 부터 storage solution을 Longhorn으로 대체한다고 하셔서 설치 명령어를 입력했는데 오류가 나오네요.

로그는 아래와 같습니다.

 

'''

[root@k8s-master ~]# kubectl apply -f https://kubetm.github.io/yamls/longhorn/longhorn.yaml

 

Warning: policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+

podsecuritypolicy.policy/longhorn-psp configured

customresourcedefinition.apiextensions.k8s.io/backingimagedatasources.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/backingimagemanagers.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/backingimages.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/backups.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/backuptargets.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/backupvolumes.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/engineimages.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/engines.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/instancemanagers.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/nodes.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/recurringjobs.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/replicas.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/settings.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/sharemanagers.longhorn.io configured

customresourcedefinition.apiextensions.k8s.io/volumes.longhorn.io configured

clusterrole.rbac.authorization.k8s.io/longhorn-role unchanged

clusterrolebinding.rbac.authorization.k8s.io/longhorn-bind unchanged

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

Error from server (NotFound): error when creating "https://kubetm.github.io/yamls/longhorn/longhorn.yaml": namespaces "longhorn-system" not found

'''

 

"kubectl create namespace longhorn-system" 명령어로 일단 namespace를 만들어서 설치를 하여 진행을 해보고 있습니다.

정확한 솔루션인지는 모르겠네요.

확인 부탁드립니다.

 

* kubectl create ns honghorn-system 으로 네임스페이스를 만들어서 설치를 하면 다음과 같은 문제가 발생하네요.

3개의 pod이 init상태에서 더 진행되지 않습니다.

kubernetes docker

답변 1

0

일프로

안녕하세요.

namespace 생성부분이 yaml파일 내에서 누락이 되었네요.

설치 경로 수정했습니다.

create로 네임스페이스 생성은 잘 하셨고요.

계속 init 중인 이유에 대해서 로그를 봐야합니다.

kubectl describe pods longhorn-manager-wzlrl 을 해볼 필요가 있겠네요.

캡쳐 보내주시면 같이 확인해보겠습니다.

이와 별도로 마스터 노드워 워커노드에서 아래 명령어 설치는 제대로 되어 있나요?

yum install -y iscsi-initiator-utils

 

 

[15. ConfigMap, Secret - 실습] Env (File) 실습 시 문의사항

1

55

2

Node Schedule 실습 시 pod3 생성 시 메모리 요청량이 올라가지 않는 사항

1

45

1

Guest OS

1

61

2

kubeTM Blog는 없어진건가요????

1

64

2

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

0

65

2

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

1

83

2

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

1

129

4

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

1

78

3

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

1

115

1

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

1

104

2

configMap 파일생성

1

89

2

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

1

97

2

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

1

88

2

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

1

69

2

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

1

109

2

Ingress실습에 난관이 있습니다

1

76

2

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

1

104

3

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

0

64

1

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

1

71

2

Could not resolve host: externalname1; Unknown error

0

69

2

Failed to create pod sandbox

1

106

2

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

0

70

2

0/3 nodes are available

1

62

2

Back-off restarting fail~~

1

124

4