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

Mount our persistent PVC as RWX #115

Open
7 tasks
TomasTomecek opened this issue Mar 22, 2024 · 1 comment
Open
7 tasks

Mount our persistent PVC as RWX #115

TomasTomecek opened this issue Mar 22, 2024 · 1 comment

Comments

@TomasTomecek
Copy link
Collaborator

Followup to #105, it contains a lot of context for this work

TL;DR we can only have a single PVC, it is now RWO (only a single pod can have a PV), fedora-infra team will not give us more PVs so we need to use that PVC as RWX: multiple pods can mount it

Tasks:

  • prepare a change for our persistent PVC definition to be RWX https://github.com/fedora-copr/log-detective-website/blob/main/openshift/log-detective.yaml#L50
    • we have another namespace in the cluster, you may want to experiment with it there
  • once ready, make an announcement in our "log-detective" channel that there will be an outage for one hour
  • log in to our cluster and back everything up ( = copy to your laptop) in /persistent - the volume
  • take a deep breath and delete the persistent PVC with RWO
  • oc apply the log-detective.yaml with the RWX change
  • copy all the content inside
    • ⚠️ this will be really tricky because gunicorn requires certificates present in the volume and since the volume will be empty, you won't be able to run a pod; the easiest thing to do is to replace the command with sleep infinity or something like that
  • verify all works well, ideally ask people on the team for help :)
@nikromen
Copy link
Member

copy all the content inside

I want to empathize here copy the whole /persistent directory (e.g. to your device)

@praiskup praiskup moved this from Needs triage to Someday in future in CPT Kanban Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Someday in future
Development

No branches or pull requests

2 participants