Ладья не может распознать "rook-storageclass.yaml": нет совпадений для rook.io/, Kind=Pool
В моем кластере Kubernetes V1.6.4 при попытке установить пример приложения rook https://github.com/rook/rook/blob/master/Documentation/k8s-block.md
когда я запускаю файл storageclass.yaml, его сообщение об ошибке ниже.
kubectl create -f rook-storageclass.yaml
storageclass "rook-block" created
error: unable to recognize "rook-storageclass.yaml": no matches for rook.io/, Kind=Pool
Вот файл yaml.
cat rook-storageclass.yaml
apiVersion: rook.io/v1alpha1
kind: Pool
metadata:
name: replicapool
namespace: rook
spec:
replication:
size: 1
# For an erasure-coded pool, comment out the replication size above and uncomment the following settings.
# Make sure you have enough OSDs to support the replica size or erasure code chunks.
#erasureCode:
# codingChunks: 2
# dataChunks: 2
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: rook-block
provisioner: rook.io/block
parameters:
pool: replicapool
# Specify the Rook cluster from which to create volumes. If not specified, it will use `rook` as the namespace and name of the cluster.
# clusterName: rook
# clusterNamespace: rook
kubectl exec -ti -n rook rook-client -- rook pool ls
NAME NUMBER TYPE SIZE DATA CODING ALGORITHM
rbd 0 replicated 1
replicapool 1 replicated 1
Все стручки работают.
kubectl get pods -n rook
NAME READY STATUS RESTARTS AGE
mon0-xhskn 1/1 Running 0 3h
mon1-zssm7 1/1 Running 0 3h
mon2-kcbcw 1/1 Running 0 3h
osd-31jwf 1/1 Running 0 3h
osd-6lq9r 1/1 Running 0 3h
osd-bvwg6 1/1 Running 0 3h
rook-api-3856091537-jgctn 1/1 Running 0 3h
rook-client 1/1 Running 0 3h
rook-tools 1/1 Running 0 3h
статус ладьи
root@rook-tools:/# rook status
OVERALL STATUS: WARNING
SUMMARY:
SEVERITY MESSAGE
WARNING too many PGs per OSD (716 > max 300)
USAGE:
TOTAL USED DATA AVAILABLE
112.35 GiB 12.31 GiB 0 B 100.04 GiB
MONITORS:
NAME ADDRESS IN QUORUM STATUS
mon0 10.244.1.26:6790/0 true OK
mon1 10.244.2.30:6790/0 true OK
mon2 10.244.3.36:6790/0 true OK
OSDs:
TOTAL UP IN FULL NEAR FULL
3 3 3 false false
PLACEMENT GROUPS (2148 total):
STATE COUNT
active+clean 2148
Как устранить это сообщение об ошибке?
Спасибо SR