Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Commit

Permalink
Mark most proxy-public services as ClusterIP
Browse files Browse the repository at this point in the history
We wanna release our unused static IP addresses,
since all traffic into most hubs now comes in
via the ingress controller. The exceptions are
the data8x hubs, cs194 prod and the datahubs. We
explicitly mark those as LoadBalancer to keep their
public IPs intact. I've already removed their DNS
entries.

You can't actually just change the type from
LoadBalancer to ClusterIP (kubernetes/kubectl#221),
so this command was used to patch them manually
k get ns | rg staging | rg -v datahub | awk '{ print $1; }' | xargs -L1 -I{} kubectl -n {} patch svc proxy-public --type='json' -p '[{"op":"replace","path":"/spec/type","value":"ClusterIP"},{"op":"replace","path":"/spec/ports/0/nodePort","value":null},{"op":"replace","path":"/spec/ports/1/nodePort","value":null},{"op":"replace","path":"/spec/ports/2/nodePort","value":null}]'

Ref #2167
  • Loading branch information
yuvipanda committed Feb 9, 2021
1 parent ea0126d commit 2cc4a59
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions deployments/cs194/config/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ jupyterhub-ssh:

jupyterhub:
proxy:
type: Loadbalancer
service:
loadBalancerIP: 35.193.57.206
https:
Expand Down
2 changes: 2 additions & 0 deletions deployments/data8x/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jupyterhub:
services:
gofer_nb:
url: http://35.239.20.122:10101
proxy:
type: Loadbalancer
auth:
type: lti
admin:
Expand Down
1 change: 1 addition & 0 deletions deployments/datahub/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jupyterhub:
mem_limit: 4096M
mem_guarantee: 1024M
proxy:
type: Loadbalancer
nodeSelector:
hub.jupyter.org/pool-name: core-pool
auth:
Expand Down
1 change: 1 addition & 0 deletions hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jupyterhub:
memory: 1G
proxy:
service:
type: ClusterIP
extraPorts:
- port: 22
targetPort: 8022
Expand Down

0 comments on commit 2cc4a59

Please sign in to comment.