Skip to content
This repository was archived by the owner on Sep 14, 2025. It is now read-only.

Add PVC for CB-Spider and CB-Tumblebug#44

Merged
seokho-son merged 2 commits intocloud-barista:masterfrom
jihoon-seo:200803-Add-PVC-for-CB-Spider
Aug 4, 2020
Merged

Add PVC for CB-Spider and CB-Tumblebug#44
seokho-son merged 2 commits intocloud-barista:masterfrom
jihoon-seo:200803-Add-PVC-for-CB-Spider

Conversation

@jihoon-seo
Copy link
Copy Markdown
Member

Tested with:

  • test/official/sequentialFullTest/testAll-mcis-mcir-ns-cloud.sh aws 1 jhseo
  • test/official/sequentialFullTest/cleanAll-mcis-mcir-ns-cloud.sh aws 1 jhseo
  • Metadata of CB-Spider and CB-Tumblebug is preserved after ./operator stop (helm uninstall) and ./operator run (helm install)

PV/PVC Retain/Keep Why "Yes"?
cb-spider Yes "helm.sh/resource-policy": "keep"
cb-tumblebug Yes "helm.sh/resource-policy": "keep"
data-cb-dragonfly-etcd-0 Yes PVC is generated through StatefulSets' dynamic volume provisioning.
cb-dragonfly-influxdb No
cb-restapigw-influxdb No
docker-registry No

[Below is For Your Information]

[When CB Helm chart is installed] (./operator run)

❯ kubectl get pv -n cloud-barista 
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                                    STORAGECLASS   REASON   AGE
pvc-2a8a7815-9b8b-4be1-9cd1-4ffad8dbff16   1Gi        RWO            Delete           Bound    cloud-barista/docker-registry            standard                16m
pvc-2bedc82f-d948-443e-827c-bccfa746f135   8Gi        RWO            Delete           Bound    cloud-barista/data-cb-dragonfly-etcd-0   standard                17h
pvc-32485b45-a515-4146-b1bd-3a4b7db099e1   8Gi        RWO            Delete           Bound    cloud-barista/cb-dragonfly-influxdb      standard                16m
pvc-6ec3adda-ca32-4e13-9cd8-a5f361d9cda2   1Gi        RWX            Delete           Bound    cloud-barista/cb-tumblebug               standard                33m
pvc-cf999e6c-fd24-45c7-9921-8b1e9592f2be   8Gi        RWO            Delete           Bound    cloud-barista/cb-restapigw-influxdb      standard                16m
pvc-dac064d0-d51e-49ef-819b-dc3d0b363644   1Gi        RWX            Delete           Bound    cloud-barista/cb-spider                  standard                83m
❯ kubectl get pvc -n cloud-barista
NAME                       STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
cb-dragonfly-influxdb      Bound    pvc-32485b45-a515-4146-b1bd-3a4b7db099e1   8Gi        RWO            standard       17m
cb-restapigw-influxdb      Bound    pvc-cf999e6c-fd24-45c7-9921-8b1e9592f2be   8Gi        RWO            standard       17m
cb-spider                  Bound    pvc-dac064d0-d51e-49ef-819b-dc3d0b363644   1Gi        RWX            standard       84m
cb-tumblebug               Bound    pvc-6ec3adda-ca32-4e13-9cd8-a5f361d9cda2   1Gi        RWX            standard       34m
data-cb-dragonfly-etcd-0   Bound    pvc-2bedc82f-d948-443e-827c-bccfa746f135   8Gi        RWO            standard       17h
docker-registry            Bound    pvc-2a8a7815-9b8b-4be1-9cd1-4ffad8dbff16   1Gi        RWO            standard       17m

[When CB Helm chart is uninstalled] (./operator stop)

❯ kubectl get pv -n cloud-barista 
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                                    STORAGECLASS   REASON   AGE
pvc-2bedc82f-d948-443e-827c-bccfa746f135   8Gi        RWO            Delete           Bound    cloud-barista/data-cb-dragonfly-etcd-0   standard                17h
pvc-6ec3adda-ca32-4e13-9cd8-a5f361d9cda2   1Gi        RWX            Delete           Bound    cloud-barista/cb-tumblebug               standard                36m
pvc-dac064d0-d51e-49ef-819b-dc3d0b363644   1Gi        RWX            Delete           Bound    cloud-barista/cb-spider                  standard                86m
❯ kubectl get pvc -n cloud-barista
NAME                       STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
cb-spider                  Bound    pvc-dac064d0-d51e-49ef-819b-dc3d0b363644   1Gi        RWX            standard       87m
cb-tumblebug               Bound    pvc-6ec3adda-ca32-4e13-9cd8-a5f361d9cda2   1Gi        RWX            standard       37m
data-cb-dragonfly-etcd-0   Bound    pvc-2bedc82f-d948-443e-827c-bccfa746f135   8Gi        RWO            standard       17h

@jihoon-seo jihoon-seo requested a review from seokho-son August 4, 2020 02:02
@seokho-son
Copy link
Copy Markdown
Member

@jihoon-seo
It looks good 👍
Can we remove the pv and pvc with "./operator remove" command ?

@jihoon-seo
Copy link
Copy Markdown
Member Author

@seokho-son
2nd commit (fa24baf) adds PV+PVC removing feature.


Note: The names of PVC to delete (cb-spider, cb-tumblebug, data-cb-dragonfly-etcd-0) is hard-coded in src/cmd/remove.go.


Note: The names of PVC to create (cb-spider, cb-tumblebug, data-cb-dragonfly-etcd-0) is determined in

@seokho-son
Copy link
Copy Markdown
Member

@jihoon-seo For now, It seems ok, but it would be better to avoid hard-coding.

@seokho-son seokho-son merged commit 8bf465c into cloud-barista:master Aug 4, 2020
@jihoon-seo jihoon-seo deleted the 200803-Add-PVC-for-CB-Spider branch August 5, 2020 02:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants