Longhorn 설치 오류 (중급편 volume 실습 강의)
583
작성한 질문수 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
yml 작성하다가 에러 발생해서 문의 드립니다.
0
37
2
설치수업중에 질문드립니다.
1
55
2
기초다지기 설치 문의드립니다.
1
104
4
HPA 부분 Auto Scaler 설치하는 링크가 없습니다!!
1
64
3
클러스터 초기화 및 팟 네트워크 세팅시 문제가 있습니다
1
100
1
환경 구성에 있어서 질문드립니다
1
92
2
configMap 파일생성
1
77
2
dashboard에서 pod 생성이 되지 않습니다.
1
77
2
nodePort 서비스 접근 Client sent an HTTP request to an HTTPS server
1
74
2
대시보드 화면이 달라요 ㅠㅠ
1
58
2
대시보드 접근이 안됩니다!
1
98
2
Ingress실습에 난관이 있습니다
1
66
2
master 노드에서 ssh 로그인 창이 안뜨는 오류
1
82
3
안녕하세요 일프로님 궁금한 거 있습니다
0
50
1
7강 마지막 대시 보드 출력에 관한 문제
1
57
2
Could not resolve host: externalname1; Unknown error
0
59
2
Failed to create pod sandbox
1
89
2
자료실을 못 찾겠습니다 ㅜ ㅡ ㅜ
0
57
2
0/3 nodes are available
1
57
2
Back-off restarting fail~~
1
99
4
쿠버네티스 대시보드 접속 문제
1
89
2
설치관련 질문입니다
1
116
2
raw.githubusercontent.com 에 대한 질문
1
137
2
worker노드 추가시에
1
68
1





