Longhorn 설치 오류 (중급편 volume 실습 강의)
601
작성한 질문수 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
이거 지금 부터 들어도 괜찮을까요 ?? 시간이 꽤지난거같은데 .. 뭐 최신하고 아에 안맞을까요 .
0
36
1
pod kubetm/app 에서 image를 갑자기 못가져 오는거 같습니다.
1
44
2
3. Node Schedule 중 pod-5가 마스터 노드에 배치됩니다.
1
51
2
volume hostpath의 강의에 관해 질문이 있습니다.
1
40
2
컨트롤러
1
75
2
네임스페이스+파드
0
76
3
강의영상 과 자료
0
84
2
IP 가 어딨나요?
1
73
2
설치 문제 없는건가요?
1
57
1
xshell 접속오류
1
77
2
[15. ConfigMap, Secret - 실습] Env (File) 실습 시 문의사항
1
91
2
Node Schedule 실습 시 pod3 생성 시 메모리 요청량이 올라가지 않는 사항
1
72
1
Guest OS
1
76
2
kubeTM Blog는 없어진건가요????
1
99
2
yml 작성하다가 에러 발생해서 문의 드립니다.
0
99
2
설치수업중에 질문드립니다.
1
127
2
기초다지기 설치 문의드립니다.
1
179
4
HPA 부분 Auto Scaler 설치하는 링크가 없습니다!!
1
103
3
클러스터 초기화 및 팟 네트워크 세팅시 문제가 있습니다
1
137
1
환경 구성에 있어서 질문드립니다
1
137
2
configMap 파일생성
1
118
2
dashboard에서 pod 생성이 되지 않습니다.
1
136
2
nodePort 서비스 접근 Client sent an HTTP request to an HTTPS server
1
130
2
대시보드 화면이 달라요 ㅠㅠ
1
102
2





