Giter VIP home page Giter VIP logo

Comments (3)

onedr0p avatar onedr0p commented on May 14, 2024

See more information here:

billimek/k8s-gitops#134

from home-ops.

onedr0p avatar onedr0p commented on May 14, 2024

My steps to resolve:

# scale down deployment
k scale deployment.apps/nzbhydra2 --replicas 0

# export yaml for editing
k get pv (kubectl get pv --all-namespaces | grep "nzbhydra2-config" | awk '{print $1}') -o yaml > /tmp/pv.yaml

# change `controllerExpandSecretRef.name` value to `rook-csi-rbd-provisioner`
nano /tmp/pv.yaml

# replace
k replace --cascade=false --force -f /tmp/pv.yaml

# while the above is running do the following in a separate shell session
k edit pv (kubectl get pv --all-namespaces | grep "nzbhydra2-config" | awk '{print $1}')

# remove following code and save
  finalizers:
  - kubernetes.io/pv-protection

# now the k replace command should have finished

# scale back up
k scale deployment.apps/nzbhydra2 --replicas 1

# now give it a moment to resize and ignore the Claim Lost messages
k describe pvc/nzbhydra2-config

Events, after awhile (~10 minutes) the volume should be resized and the PVC should report the following.

Events:
  Type     Reason                      Age                  From                                         Message
  ----     ------                      ----                 ----                                         -------
  Normal   Resizing                    48m (x38 over 3h1m)  external-resizer rook-ceph.rbd.csi.ceph.com  External resizer is resizing volume pvc-3f7819a8-be4c-48c8-8cc0-e538675bde32
  Warning  VolumeResizeFailed          48m (x38 over 3h1m)  external-resizer rook-ceph.rbd.csi.ceph.com  resize volume pvc-3f7819a8-be4c-48c8-8cc0-e538675bde32 failed: error getting secret rook-ceph-csi in namespace rook-ceph: secrets "rook-ceph-csi" not found
  Warning  ExternalExpanding           45m                  volume_expand                                Ignoring the PVC: didn't find a plugin capable of expanding the volume; waiting for an external controller to process this PVC.
  Warning  VolumeResizeFailed          12m (x21 over 40m)   external-resizer rook-ceph.rbd.csi.ceph.com  resize volume pvc-3f7819a8-be4c-48c8-8cc0-e538675bde32 failed: error getting secret rook-ceph-csi in namespace rook-ceph: secrets "rook-ceph-csi" not found
  Warning  ClaimLost                   9m17s                persistentvolume-controller                  Bound claim has lost its PersistentVolume. Data on the volume is lost!
  Normal   Resizing                    52s (x23 over 40m)   external-resizer rook-ceph.rbd.csi.ceph.com  External resizer is resizing volume pvc-3f7819a8-be4c-48c8-8cc0-e538675bde32
  Normal   FileSystemResizeRequired    51s                  external-resizer rook-ceph.rbd.csi.ceph.com  Require file system resize of volume on node
  Normal   FileSystemResizeSuccessful  8s                   kubelet, k3s-worker-d                        MountVolume.NodeExpandVolume succeeded for volume "pvc-3f7819a8-be4c-48c8-8cc0-e538675bde32"

from home-ops.

onedr0p avatar onedr0p commented on May 14, 2024

All PVCs have been updated to support resizing.

from home-ops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.