Closed cicharka closed 2 years ago
K8s cluster provisioned within AWS and access 2 the control plane obtained.
shell root@prefix-7-norbix-kubernetes-master-vm-0:~# k get ns NAME STATUS AGE default Active 18h kube-node-lease Active 18h kube-public Active 18h kube-system Active 18h kubernetes-dashboard Active 18h root@prefix-7-norbix-kubernetes-master-vm-0:~#
Rook operator deployed
`root@prefix-7-norbix-kubernetes-master-vm-0:~/persistent_storage# k get all -n rook-ceph NAME READY STATUS RESTARTS AGE pod/csi-cephfsplugin-7xl2t 3/3 Running 0 21h pod/csi-cephfsplugin-kfndq 3/3 Running 0 21h pod/csi-cephfsplugin-provisioner-8758b6bdf-6n58l 6/6 Running 0 21h pod/csi-cephfsplugin-provisioner-8758b6bdf-ltwj7 6/6 Running 0 21h pod/csi-rbdplugin-lldrs 3/3 Running 0 21h pod/csi-rbdplugin-mztrd 3/3 Running 0 21h pod/csi-rbdplugin-provisioner-6b5b4468d9-9qmc6 6/6 Running 0 21h pod/csi-rbdplugin-provisioner-6b5b4468d9-gfbvt 6/6 Running 0 21h pod/rook-ceph-operator-84866c778f-jjjhm 1/1 Running 0 21h
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/csi-cephfsplugin-metrics ClusterIP 10.107.224.193
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
daemonset.apps/csi-cephfsplugin 2 2 2 2 2
NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/csi-cephfsplugin-provisioner 2/2 2 2 21h deployment.apps/csi-rbdplugin-provisioner 2/2 2 2 21h deployment.apps/rook-ceph-operator 1/1 1 1 21h
NAME DESIRED CURRENT READY AGE replicaset.apps/csi-cephfsplugin-provisioner-8758b6bdf 2 2 2 21h replicaset.apps/csi-rbdplugin-provisioner-6b5b4468d9 2 2 2 21h replicaset.apps/rook-ceph-operator-84866c778f 1 1 1 21h root@prefix-7-norbix-kubernetes-master-vm-0:~/persistent_storage#`
Closing the ticket since its mismatch in default epiphany configuration for kubernetes cluster.
Clarification:
enable-controller-attach-detach="false"
ceph csi-rbdplugin
pod from rook-ceph cluster, which is responsible for attaching/mounting/unmounting/detaching is not able to perform these operations on the worker nodeenable-controller-attach-detach
set to "True"
For users working with Rook on Epiphany cluster, and trying to use BlockStorage
and FilesystemStorage
it is required to update kubelet config parameters and set kubelet flag enable-controller-attach-detach
to "True"
.
Fix in the code, which will enable setting that flag by users when initializing cluster will be added in Epiphany 2.0.1, see the ticket for more information: https://github.com/epiphany-platform/epiphany/issues/3190
Describe the bug Scenario: simple Epiphany cluster with 1 master and 3 kubernetes worker nodes, configured to use Rook. See input_manifest.yml used for deploying the cluster: input_manifest.txt
After deploying the cluster, using example from Rook documentation - Block Storage - we try to deploy example app - wordpress. After running
kubectl apply -f wordpress.yml
, wordpress pod remains ContainerCreating state. That pod is using default rook StorageClass.Note that Object Storage (one that imitates S3 API) is working fine with the default configuration. Note that Block Storage which is reason of that Bug is able to provision the volume to the pod if cluster has:
How to reproduce
ContainerCreating
state Expected behaviorExpected Behavior When deploying any app that will consume Block Storage, pod will be created, in ready state, and will be able to consume that persistent block storage.
Config files input_manifest.txt
Environment
epicli version: [
epicli --version
] 2.0.0Additional context
DoD checklist