Skip to content

PCT: Change the Connect default to use OHE #672

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tnederlof
Copy link
Contributor

This PR changes the Connect chart to run in OHE mode by default instead of the current default (service and content runs in the same pod(s)). I think this default makes more sense as its the way we at Posit advise customers to run Connect in Kubernetes and it is the only Kubernetes configuration documented in the admin guide.

This is also important for customers who have Pod Security Standards or other mechanisms set to disallow privileged execution. The current chart runs with securityContext.privileged: true, which causes issues for these customers until they know to switch this setting. This PR will eliminate that need.

Bumped the minor version and added a section to the README template to make it more prominent the potentially breaking change (for customers who are not running in OHE).

Once this merges, the documentation here can be simplified (don't need to explicitly have folks add launcher.enabled: true. https://docs.posit.co/connect/admin/getting-started/off-host-install/configure-helm-chart/

Closes: #436

@tnederlof
Copy link
Contributor Author

It looks like the install in CI is failing because there is no PVC. I am not familiar with the testing infrastructure. Is there a way to mock up storage in these tests? It seems this error is reasonable if a customer is trying to setup without sharedStorage.

Error: template: rstudio-connect/templates/NOTES.txt:46:6: executing "rstudio-connect/templates/NOTES.txt" at <fail "\n\nWhen launcher is enabled, persistent storage must be provided.\nThis is usually done via a PersistentVolumeClaim (PVC) with `sharedStorage.create=true`, although there are other options.">: error calling fail: HELM_ERR_START

When launcher is enabled, persistent storage must be provided.
This is usually done via a PersistentVolumeClaim (PVC) with `sharedStorage.create=true`, although there are other options.HELM_ERR_END

@bdeitte
Copy link
Contributor

bdeitte commented May 17, 2025

@jforest In the comment above, is this the part of the testing infra you worked on?

@jforest
Copy link
Contributor

jforest commented May 19, 2025

@jforest In the comment above, is this the part of the testing infra you worked on?

This is the install testing, yes. This is triggered because the chart requires a pvc when launcher.enabled is true

https://github.com/rstudio/helm/blob/main/ci/rstudio-connect/install/license-file-values.yaml is the only set of install testing configs. Each file in that directory will be used for a different install test. These tests are run by the chart testing tool. The lint tests are also run by that tool.

Would you like to set up a time to talk through how all the testing is set up?

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.

Change launcher for Connect chart to default true
4 participants