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

Enforce that Projects Persistance SC is only set to be RWX #1553

Conversation

rooftopcellist
Copy link
Member

SUMMARY

Now that web and task are now separate deployments, ReadWriteOnce is no longer a valid option for the projects persistence feature since the mounted /projects directory will be accessed by pods from different deployments now. ReadWriteMany is required. As such, we should validate that this is set as ReadWriteMany, and deprecate this parameter in the future.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change

@rooftopcellist rooftopcellist force-pushed the restrict-projects-persistance-rwx branch from f2b3248 to 681e8e4 Compare November 27, 2023 16:15
@rooftopcellist
Copy link
Member Author

rooftopcellist commented Dec 21, 2023

I think this PR is unneeded because there is a somewhat valid use case for using RWO for the projects persistence PVC.

I don't think that the web container needs access to /var/lib/awx/projects. If it doesn't, then we can just remove the volume mount from the web deployment and solve this issue that way. If so, I think we should just remove the projects_persistence mounts from the web container and keep providing the ability to use a RWO PVC for projects persistence.

If RWX is not available, it still stands that the user would need to set node_selector for the task pod if replicas is set > 1 so that all of those pods get scheduled on the same node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant