Add Contour HTTPProxy ingress example for Workbench#887
Open
samcofer wants to merge 1 commit into
Open
Conversation
Adds a Workbench ingress example that uses Contour's HTTPProxy CRD (rendered via extraObjects), since Contour's Ingress annotations don't expose cookie-based session affinity. The HTTPProxy wires up TLS, websockets, long timeouts, and the X-Forwarded-Proto / X-RStudio-Request headers Workbench needs behind a TLS-terminating proxy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HTTPProxyCRD (rendered viaextraObjects) instead of the chart's templatedIngress. Contour'sIngressannotations don't expose cookie-based session affinity, which Workbench requires when running more than one replica.HTTPProxywires up TLS, websockets (RStudio IDE / VS Code / Positron / Jupyter / job streaming), long timeouts, and theX-Forwarded-Proto/X-RStudio-Requestheaders Workbench needs behind a TLS-terminating proxy.workbench.example.comandposit-workbench-tlsplaceholders, inline# TODO:markers, and a minimal.qmdthat includes_prereqs.qmd.Why this matters beyond Posit users
This also lines up with SAS Viya's stated direction for Kubernetes ingress. Per the SAS Viya 2025.12 release notes:
Customers who run Posit Workbench alongside SAS Viya on the same cluster were previously stuck either running two ingress controllers or hand-rolling an
HTTPProxy. This example gives them a documented Posit-supported pattern that drops cleanly into the same Contour install SAS Viya is being migrated onto.Test plan
helm template demo charts/rstudio-workbench -f examples/workbench/ingress/rstudio-workbench-contour-ingress.yamlrenders cleanly with no leftover{{ }}outside the launcher template ConfigMapkubectl apply --dry-run=serveraccepts the renderedHTTPProxyHTTPProxyreportsSTATUS: valid, HTTPS root → 302 to/auth-sign-in, sign-in form returns 200, websocket upgrade headers pass through to Workbench