Skip to content

Commit 73adeae

Browse files
authored
Merge pull request #4290 from AIDEA775/catalyst-labi-hub
catalyst-latam: add labi hub
2 parents 096c218 + 312fafa commit 73adeae

File tree

3 files changed

+136
-0
lines changed

3 files changed

+136
-0
lines changed

config/clusters/catalystproject-latam/cluster.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,11 @@ hubs:
9797
- common.values.yaml
9898
- nnb-ccg.values.yaml
9999
- enc-nnb-ccg.secret.values.yaml
100+
- name: labi
101+
display_name: "Catalyst Project, LatAm - LABI"
102+
domain: labi.latam.catalystproject.2i2c.cloud
103+
helm_chart: basehub
104+
helm_chart_values_files:
105+
- common.values.yaml
106+
- labi.values.yaml
107+
- enc-labi.secret.values.yaml
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
jupyterhub:
2+
hub:
3+
config:
4+
GitHubOAuthenticator:
5+
client_id: ENC[AES256_GCM,data:7I22+wMEOYGCGRKzS9ZS7K9tPEI=,iv:nuJLSqQ5h1ftPS9kmoMyosex3QUiplqNvB+6lz+qTZY=,tag:ibBAJkxbueUl3bJdYtsiYw==,type:str]
6+
client_secret: ENC[AES256_GCM,data:ORTzh+AvjcazAE3BjZ+WJGvNUTpveZUgtQ2T3Ysbbis78BAC1dqfYg==,iv:USCoiEjvYTYkjaHWT9+DXTgJiSXedcgUTDhziMS7jPI=,tag:iHUTCHLD3GGMLFroAXG7Jg==,type:str]
7+
sops:
8+
kms: []
9+
gcp_kms:
10+
- resource_id: projects/two-eye-two-see/locations/global/keyRings/sops-keys/cryptoKeys/similar-hubs
11+
created_at: "2024-06-26T15:53:00Z"
12+
enc: CiUA4OM7eII3alQsLSJN4DPjA0nh9A26Hn4vqFmUdrOcNt067OP1EkkAWX/fcXLHY94SKjJ8Mu5JNuYaQb7t831SQ+bh3qHFazmdrP8cMVP95SrKStoJtXERoA0Tqgn0IppTBGbP7VRxSZPWfziWkcXz
13+
azure_kv: []
14+
hc_vault: []
15+
age: []
16+
lastmodified: "2024-06-26T15:53:01Z"
17+
mac: ENC[AES256_GCM,data:eDKXwwy2gt09MS8grNltMS1dPGBhasoDEFDyosAQjwVdXDKZzWbfqgIvIQatAWoXssD+wWbhF3Ee6By2+16iiwWRRv2WM0nbpgNnbZxZ+ABB04VpImaCNazqCKz6gNWF59lFkYn6TLvpRzOdxEseGWpozC6v2B3lozDdn63KD+0=,iv:zu1Lxtc5h3egyKSpjQvnxlOZyGrsJUXhSapOOosiO7E=,tag:ia1Xr7C6Xg5jgocK8psSEA==,type:str]
18+
pgp: []
19+
unencrypted_suffix: _unencrypted
20+
version: 3.8.1
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
jupyterhub:
2+
ingress:
3+
hosts: [labi.latam.catalystproject.2i2c.cloud]
4+
tls:
5+
- hosts: [labi.latam.catalystproject.2i2c.cloud]
6+
secretName: https-auto-tls
7+
custom:
8+
homepage:
9+
templateVars:
10+
org:
11+
name: Catalyst Project, LatAm - LABI
12+
hub:
13+
config:
14+
JupyterHub:
15+
authenticator_class: github
16+
GitHubOAuthenticator:
17+
oauth_callback_url: https://labi.latam.catalystproject.2i2c.cloud/hub/oauth_callback
18+
allowed_organizations:
19+
- CatalystProject-Hubs:labi
20+
scope:
21+
- read:org
22+
Authenticator:
23+
admin_users: []
24+
25+
singleuser:
26+
profileList:
27+
- display_name: Jupyter SciPy Notebook
28+
description: Python environment
29+
slug: jupyter
30+
default: true
31+
kubespawner_override:
32+
image: quay.io/jupyter/scipy-notebook:2024-03-04
33+
default_url: /lab
34+
profile_options: &profile_options
35+
resource_allocation: &resource_allocation
36+
display_name: Resource Allocation
37+
choices:
38+
mem_0_7:
39+
display_name: Up to 2G of RAM and 1 CPU
40+
kubespawner_override:
41+
mem_guarantee: 732421K
42+
mem_limit: 2G
43+
cpu_guarantee: 0.093
44+
cpu_limit: 1
45+
mem_3_0:
46+
display_name: Up to 6G of RAM and 2 CPUs
47+
kubespawner_override:
48+
mem_guarantee: 2929687.5K
49+
mem_limit: 6G
50+
cpu_guarantee: 0.375
51+
cpu_limit: 2
52+
mem_12_0:
53+
display_name: Up to 24G of RAM and 3 CPUs
54+
kubespawner_override:
55+
mem_guarantee: 11718750K
56+
mem_limit: 24G
57+
cpu_guarantee: 1.5
58+
cpu_limit: 3
59+
# GPU
60+
mem_26_0:
61+
display_name: 1 GPU, 21G of RAM and 3 CPUs
62+
kubespawner_override:
63+
mem_guarantee: 21G
64+
mem_limit: null
65+
cpu_guarantee: 3
66+
environment:
67+
NVIDIA_DRIVER_CAPABILITIES: compute,utility
68+
node_selector:
69+
node.kubernetes.io/instance-type: n1-highmem-4
70+
extra_resource_limits:
71+
nvidia.com/gpu: "1"
72+
mem_104_0:
73+
display_name: 4 GPU, 92G of RAM and 15 CPUs
74+
kubespawner_override:
75+
mem_guarantee: 92G
76+
mem_limit: null
77+
cpu_guarantee: 15
78+
environment:
79+
NVIDIA_DRIVER_CAPABILITIES: compute,utility
80+
node_selector:
81+
node.kubernetes.io/instance-type: n1-highmem-16
82+
extra_resource_limits:
83+
nvidia.com/gpu: "4"
84+
- display_name: Rocker Geospatial with RStudio
85+
description: R environment
86+
slug: rocker
87+
kubespawner_override:
88+
image: rocker/binder:4.3
89+
image_pull_policy: Always
90+
default_url: /rstudio
91+
working_dir: /home/rstudio # Ensures container working dir is homedir
92+
profile_options: *profile_options
93+
94+
- display_name: Bring your own image
95+
description: Specify your own docker image (must have python and jupyterhub installed in it)
96+
slug: custom
97+
profile_options:
98+
image:
99+
display_name: Image
100+
unlisted_choice:
101+
enabled: True
102+
display_name: "Custom image"
103+
validation_regex: "^.+:.+$"
104+
validation_message: "Must be a publicly available docker image, of form <image-name>:<tag>"
105+
kubespawner_override:
106+
image: "{value}"
107+
choices: {}
108+
resource_allocation: *resource_allocation

0 commit comments

Comments
 (0)