Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change nfs path without reinstalling helm package #331

Open
AlistairMcCutcheonIAS opened this issue Mar 12, 2024 · 5 comments
Open

Change nfs path without reinstalling helm package #331

AlistairMcCutcheonIAS opened this issue Mar 12, 2024 · 5 comments
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@AlistairMcCutcheonIAS
Copy link

AlistairMcCutcheonIAS commented Mar 12, 2024

I've been using this for some time, but I need to change the nfs path that I'm using. I have several persistent volumes which I don't want to delete.
As per the readme, the way to install the helm package is:

helm install nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \
    --set nfs.server=x.x.x.x \
    --set nfs.path=/exported/path

But is there any way to change the nfs.path after it is installed please?

@Orhideous
Copy link

Orhideous commented Mar 16, 2024

It is not possible to change the path in existing volumes.

Rename/move the data folder on the NFS server (if the archiveOnDelete policy is not set), then delete pv/pvc, then move the data back to its place after creation of new pv/pvc.

In the case of a database, temporary replace the command with ["/bin/sleep", "infinity"] to maintain data consistency.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 14, 2024
@Orhideous
Copy link

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 22, 2024
@Orhideous
Copy link

Well, since kubernetes/kubernetes#54562 configuration for NFS volumes is effectively set in stone, so there are no easy way to move data automatically.

Nevertheless, I removed the stale label, because this issue can be addressed, at least with mention of some workarounds in the docs.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

4 participants