rook ceph的安装与配置务必特别小心,任何一个小错误都会带来大麻烦

[root@docker rook]# helm install --tls --namespace rook --name rook-ceph rook-beta/rook-ceph --version v0.8.3 -f rook-values.yaml
Error: release rook-ceph failed: Internal error occurred: admission webhook "trust.hooks.securityenforcement.admission.cloud.ibm.com" denied the request: 
Deny "docker.io/rook/ceph:v0.8.3", no matching repositories in ClusterImagePolicy and no ImagePolicies in the "rook" namespace
[root@docker rook]# cd ..
[root@docker software]# ls
cloudctl  docker  helmctl  kubectl  os  rook
[root@docker software]# mkdir policy
[root@docker software]# cd policy
[root@docker policy]# vi clusterImagePolicy.yaml
[root@docker policy]# kubectl apply -f clusterImagePolicy.yaml
Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply
clusterimagepolicy.securityenforcement.admission.cloud.ibm.com/ibmcloud-default-cluster-image-policy configured
[root@docker policy]# cd ..
[root@docker software]# ls
cloudctl  docker  helmctl  kubectl  os  policy  rook
[root@docker software]# cd rook
[root@docker rook]# helm install --tls --namespace rook --name rook-ceph rook-beta/rook-ceph --version v0.8.3 -f rook-values.yaml
Error: a release named rook-ceph already exists.
Run: helm ls --all rook-ceph; to check the status of the release
Or run: helm del --purge rook-ceph; to delete it
[root@docker rook]# helm ls --all rook-ceph
Error: transport is closing
[root@docker rook]# helm del --purge rook-ceph
Error: transport is closing
[root@docker rook]# helm install --tls --namespace rook --name rook-ceph2 rook-beta/rook-ceph --version v0.8.3 -f rook-values.yaml
Error: release rook-ceph2 failed: podsecuritypolicies.extensions "00-rook-ceph-operator" already exists
[root@docker rook]# kubectl del 00-rook-ceph-operator
Error: unknown command "del" for "kubectl"

Did you mean this?
    set
    get
    delete

Run 'kubectl --help' for usage.
unknown command "del" for "kubectl"

Did you mean this?
    set
    get
    delete

[root@docker rook]# kubectl delete 00-rook-ceph-operator
error: resource(s) were provided, but no name, label selector, or --all flag specified
[root@docker rook]# kubectl delete 00-rook-ceph-operator -n rook
error: resource(s) were provided, but no name, label selector, or --all flag specified
[root@docker rook]# kubectl delete podpolicy 00-rook-ceph-operator -n rook
error: the server doesn't have a resource type "podpolicy"
[root@docker rook]# kubectl delete ?
error: resource(s) were provided, but no name, label selector, or --all flag specified
[root@docker rook]# kubectl delete PodSecurityPolicy 00-rook-ceph-operator
podsecuritypolicy.extensions "00-rook-ceph-operator" deleted
[root@docker rook]# ls
rook-clusterrolebinding.yaml  rook-priviledged-psp-user.yaml  rook-values.yaml
rook-pre-validation.yaml      rook-priviledged-psp.yaml
[root@docker rook]# helm install --tls --namespace rook --name rook-ceph2 rook-beta/rook-ceph --version v0.8.3 -f rook-values.yaml
Error: a release named rook-ceph2 already exists.
Run: helm ls --all rook-ceph2; to check the status of the release
Or run: helm del --purge rook-ceph2; to delete it
[root@docker rook]# helm install --tls --namespace rook --name rook-ceph3 rook-beta/rook-ceph --version v0.8.3 -f rook-values.yaml
Error: release rook-ceph3 failed: serviceaccounts "rook-ceph-system" already exists
[root@docker rook]# kubectl delete serviceaccount rook-ceph-system -n rook
serviceaccount "rook-ceph-system" deleted
[root@docker rook]# helm install --tls --namespace rook --name rook-ceph4 rook-beta/rook-ceph --version v0.8.3 -f rook-values.yaml
Error: release rook-ceph4 failed: podsecuritypolicies.extensions "00-rook-ceph-operator" already exists
[root@docker rook]# kubectl delete PodSecurityPolicy 00-rook-ceph-operator
podsecuritypolicy.extensions "00-rook-ceph-operator" deleted
[root@docker rook]# helm install --tls --namespace rook --name rook-ceph5 rook-beta/rook-ceph --version v0.8.3 -f rook-values.yaml
Error: release rook-ceph5 failed: customresourcedefinitions.apiextensions.k8s.io "filesystems.ceph.rook.io" already exists
[root@docker rook]# 
 

你可能感兴趣的:(Kubernetes)