From c70f634c7657ceef5afa60d812456e6c04dc4c7d Mon Sep 17 00:00:00 2001 From: Wermeille Bastien Date: Tue, 15 Aug 2023 14:19:28 +0200 Subject: [PATCH 1/2] Update services.md --- docs/source/administrator/services.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/source/administrator/services.md b/docs/source/administrator/services.md index 989328cffa..c53ada3977 100644 --- a/docs/source/administrator/services.md +++ b/docs/source/administrator/services.md @@ -68,4 +68,17 @@ hub: - port: 8181 targetPort: 8181 name: fastapi + +# Required if service should be publicly accessible +proxy: + chp: + networkPolicy: + egress: + - to: + - podSelector: + matchLabels: + app: jupyterhub + component: hub + ports: + - port: 8181 ``` From b4f331c34cc42c182d1accd195087dc6a51541ca Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Tue, 15 Aug 2023 14:51:13 +0200 Subject: [PATCH 2/2] Apply suggestions from code review --- docs/source/administrator/services.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/source/administrator/services.md b/docs/source/administrator/services.md index c53ada3977..7fe8c64c8f 100644 --- a/docs/source/administrator/services.md +++ b/docs/source/administrator/services.md @@ -69,7 +69,11 @@ hub: targetPort: 8181 name: fastapi -# Required if service should be publicly accessible +# The proxy.chp.networkPolicy.egress configuration below is required if the +# service should be accessible for users. If it shouldn't be, you should instead +# set the chart configuration services.fastapi.display to false as otherwise +# JupyterHub will provide a broken link in the Services menu for users to go to +# /services/fastapi/. proxy: chp: networkPolicy: