storageclassname: "" 안됨
310
6 asked
1. StorageOS를 설치하다가 중간에 잘 안되서 다 삭제하고 다시 하려는데, 네임스페이스 삭제가 terminating에서 멈추더라구요 그래서 네임스페이스 삭제가 멈춰 있는 것이 첫번째 문제고,
2. 그리고 storageOS 설치를 하는 과정에서 쿠버네티스상에서 설정이 들어간건지, volumeclaimtemplate 에서 strageclassname : "" 요렇게 입력 해도 pvc를 못찾더라구요.
해결 방법 부탁드립니다. ㅠㅠ
Answer 3
1
감사합니다. 공식사이트 가이드대로 잘 설치 했습니다.
그래서 사용해 보려고, 스테이트풀셋에서
storageclassname='fast'를 하면
파드에서 'Back-off restarting failed container ' 에러가 뜹니다.
그래서, storageclassnam=''로 하니까 되던데 이거는 스토리지 OS프로그램의 문제인가요 쿠버네티스의 문제인가요?
0
storageclassname=""을 했을때는 storageOS의 storageclass를 사용 안하게 됩니다.
아래 명령을 했을때 fast에 대한 storageclass가 조회되나요?
kubectl get storageclasses.storage.k8s.io
0
[root@k8s-worker09 ~]# kubectl get storageclasses.storage.k8s.io
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
csi-cephfs-sc (default) rook-ceph.cephfs.csi.ceph.com Delete Immediate true 251d
fast storageos Delete Immediate false 39h
rook-ceph-block rook-ceph.rbd.csi.ceph.com Delete Immediate true 251d
네넵 뜹니다. 위와 같습니다.
0
안녕하세요. 쿠버네티스 설치 버전이 어떻게 되시나요?
Terminating 해결 방법은 쿠버네티스 전형적인 문제라 구글링 해보시면 해결방법이 많이 나와 있습니다.
https://stackoverflow.com/questions/52369247/namespace-stuck-as-terminating-how-do-i-remove-it
Step 1: In one terminal run command bellow:
kubectl proxy
Step 2: Open another terminal then dump the descriptor as JSON to a file
kubectl get namespace YOURNAMESPACE -o json > logging.json
Open the file with a text editor:
{
"apiVersion": "v1",
"kind": "Namespace",
"metadata": {
"creationTimestamp": "2019-05-14T13:55:20Z",
"labels": {
"name": "logging"
},
"name": "logging",
"resourceVersion": "29571918",
"selfLink": "/api/v1/namespaces/logging",
"uid": "e9516a8b-764f-11e9-9621-0a9c41ba9af6"
},
"spec": {
"finalizers": [
**"kubernetes"**
]
},
"status": {
"phase": "Terminating"
}
}
Remove content of finalizers array and leave it empty like example below:
{
"apiVersion": "v1",
"kind": "Namespace",
"metadata": {
"creationTimestamp": "2019-05-14T13:55:20Z",
"labels": {
"name": "logging"
},
"name": "logging",
"resourceVersion": "29571918",
"selfLink": "/api/v1/namespaces/logging",
"uid": "e9516a8b-764f-11e9-9621-0a9c41ba9af6"
},
"spec": {
"finalizers": [
]
},
"status": {
"phase": "Terminating"
}
}
Step 3: Executing the cleanup command to get rid of that annoying namespace:
curl -k -H "Content-Type: application/json" -X PUT --data-binary @logging.json http://127.0.0.1:8001/api/v1/namespaces/YOURNAMESPACE/finalize
0
쿠버네티스 버전은 아래와 같습니다.
[root@k8s-worker09 ~]# k version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.6", GitCommit:"d32e40e20d167e103faf894261614c5b45c44198", GitTreeState:"clean", BuildDate:"2020-05-20T13:16:24Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.6", GitCommit:"d32e40e20d167e103faf894261614c5b45c44198", GitTreeState:"clean", BuildDate:"2020-05-20T13:08:34Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
0
플러그인들은 쿠버네티스 버전별로 설치 방법이 다르거든요.
그래서 제 설치영상을 참고로 아래 사이트에서 1.17 버전에 맞는 storageOS를 설치하시는게 좋습니다.
https://docs.storageos.com/docs/install/kubernetes/
yml 작성하다가 에러 발생해서 문의 드립니다.
0
39
2
설치수업중에 질문드립니다.
1
57
2
기초다지기 설치 문의드립니다.
1
105
4
HPA 부분 Auto Scaler 설치하는 링크가 없습니다!!
1
65
3
클러스터 초기화 및 팟 네트워크 세팅시 문제가 있습니다
1
101
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
60
2
대시보드 접근이 안됩니다!
1
98
2
Ingress실습에 난관이 있습니다
1
67
2
master 노드에서 ssh 로그인 창이 안뜨는 오류
1
82
3
안녕하세요 일프로님 궁금한 거 있습니다
0
50
1
7강 마지막 대시 보드 출력에 관한 문제
1
57
2
Could not resolve host: externalname1; Unknown error
0
60
2
Failed to create pod sandbox
1
90
2
자료실을 못 찾겠습니다 ㅜ ㅡ ㅜ
0
57
2
0/3 nodes are available
1
57
2
Back-off restarting fail~~
1
100
4
쿠버네티스 대시보드 접속 문제
1
89
2
설치관련 질문입니다
1
116
2
raw.githubusercontent.com 에 대한 질문
1
138
2
worker노드 추가시에
1
68
1

