• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

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

22.06.18 15:11 작성 조회수 395

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상태에서 더 진행되지 않습니다.

답변 1

답변을 작성해보세요.

0

안녕하세요.

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

설치 경로 수정했습니다.

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

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

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

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

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

yum install -y iscsi-initiator-utils