Commit de4d8691 authored by Craig Russell's avatar Craig Russell
Browse files

multi cluster redirect and beta/gpu subs

parent 8cec8a34
config:
BinderHub:
hub_url: http://beta.binder.bioimagearchive.org/binderhub/
banner_message: |
<div style="text-align: center;">Beta service with more RAM and CPU</div>
jupyterhub:
hub:
baseUrl: /binderhub
ingress:
enabled: true
hosts:
- beta.binder.bioimagearchive.org
ingress:
enabled: true
hosts:
- "beta.binder.bioimagearchive.org"
dind:
enabled: false
\ No newline at end of file
jupyterhub:
hub:
baseUrl: /binderhub
ingress:
enabled: true
hosts:
- gpu.beta.binder.bioimagearchive.org
profileList:
- display_name: "GPU Server"
description: "Spawns a notebook server with access to a GPU"
......@@ -6,4 +13,19 @@ jupyterhub:
extra_resource_limits:
nvidia.com/gpu: "1"
- display_name: "No GPU"
description: "Spawns a notebook server with access to a GPU"
\ No newline at end of file
description: "Spawns a notebook server with access to a GPU"
config:
BinderHub:
hub_url: http://gpu.beta.binder.bioimagearchive.org/binderhub/
banner_message: |
<div style="text-align: center;">Beta service with more RAM and CPU and GPU Support (no DIND atm) </div>
ingress:
enabled: true
hosts:
- "gpu.beta.binder.bioimagearchive.org"
dind:
enabled: true
\ No newline at end of file
config:
BinderHub:
hub_url: http://staging.beta.binder.bioimagearchive.org/binderhub/
banner_message: |
<div style="text-align: center;">Beta service with more RAM and CPU</div>
jupyterhub:
hub:
baseUrl: /binderhub
ingress:
enabled: true
hosts:
- staging.beta.binder.bioimagearchive.org
ingress:
enabled: true
hosts:
- "staging.beta.binder.bioimagearchive.org"
\ No newline at end of file
jupyterhub:
hub:
baseUrl: /binderhub
ingress:
enabled: true
hosts:
- gpu.staging.beta.binder.bioimagearchive.org
profileList:
- display_name: "GPU Server"
description: "Spawns a notebook server with access to a GPU"
kubespawner_override:
extra_resource_limits:
nvidia.com/gpu: "1"
# - display_name: "No GPU"
# description: "Spawns a notebook server with access to a GPU"
config:
BinderHub:
hub_url: http://gpu.staging.beta.binder.bioimagearchive.org/binderhub/
banner_message: |
<div style="text-align: center;">Beta service with more RAM and CPU and GPU Support</div>
ingress:
enabled: true
hosts:
- "gpu.staging.beta.binder.bioimagearchive.org"
settings:
kubeContext: gpu
namespaces:
binderhub-staging-gpu:
protected: false
binderhub-production-gpu:
protected: false
apps:
binderhub-production:
valuesFiles:
- "binderhub/config.yaml"
# - "binderhub/production/config.yaml"
- "binderhub/production/config_beta.yaml"
binderhub-production-gpu:
valuesFiles:
- "binderhub/config.yaml"
# - "binderhub/production/config.yaml"
- "binderhub/production/config_beta.yaml"
- "binderhub/production/config_beta_GPU.yaml"
\ No newline at end of file
......@@ -15,3 +15,7 @@ namespaces:
protected: false
daskgateway-production:
protected: false
# binderhub-staging-gpu:
# protected: false
# binderhub-production-gpu:
# protected: false
\ No newline at end of file
# context: staging
# settings:
# kubeContext: bia
namespaces:
jupyterhub-sandbox-staging:
protected: false
......@@ -15,6 +11,10 @@ namespaces:
protected: false
binderhub-production:
protected: true
binderhub-staging-gpu:
protected: true
binderhub-production-gpu:
protected: true
daskgateway-staging:
protected: false
daskgateway-production:
......
# context: minikube
# settings:
# kubeContext: minikube
settings:
kubeContext: cpu
# globalHooks:
# preUpgrade: "ingress/gpu_redirect.yaml"
# # username = "admin"
# # password = "$K8S_PASSWORD"
# # clusterURI = "https://192.168.99.100:8443"
......@@ -15,8 +18,10 @@
# bearerTokenPath: "/var/run/secrets/kubernetes.io/serviceaccount/token" # optional if a token is provided by the user in another location
# settings:
# globalHooks:
# preInstall: "persistentVolumes/biostudies.yaml"
# globalHooks:
# preInstall:
# # - "persistentVolumes/biostudies.yaml"
# - "ingress/gpu_redirect.yaml"
metadata:
organization: EBI
......@@ -131,38 +136,33 @@ apps:
valuesFiles:
- "binderhub/config.yaml"
- "binderhub/production/config.yaml"
# - "binderhub/persistentVolumes.yaml"
binderhub-production-gpu:
<<: *binderhub
name: "binderhub-production-gpu"
namespace: "binderhub-production"
group: "production-gpu"
valuesFiles:
- "binderhub/config.yaml"
- "binderhub/production/config.yaml"
- "binderhub/gpu_support.yaml"
namespace: "binderhub-production-gpu"
group: "production"
# valuesFiles:
binderhub-production-nfs:
binderhub-staging-gpu:
<<: *binderhub
name: "binderhub-production-nfs"
namespace: "binderhub-production"
group: "production-nfs"
valuesFiles:
- "binderhub/config.yaml"
- "binderhub/production/config.yaml"
- "binderhub/persistentVolumes.yaml"
# binderhub-production:
name: "binderhub-staging-gpu"
namespace: "binderhub-staging-gpu"
group: "staging"
# valuesFiles:
# - "binderhub/config.yaml"
# - "binderhub/production/config.yaml"
# - "binderhub/persistentVolumes.yaml"
# binderhub-production-gpu:
# <<: *binderhub
# name: "binderhub-production"
# name: "binderhub-production-gpu"
# namespace: "binderhub-production"
# group: "production"
# group: "production-gpu"
# valuesFiles:
# - "binderhub/config.yaml"
# # - "binderhub/secret.yaml"
# # - "binderhub/staging.yaml"
# # - "binderhub/ebi_dockerhub.yaml"
# # - "binderhub/production.yaml"
# - "binderhub/production/config.yaml"
# - "binderhub/gpu_support.yaml"
jupyterhub-sandbox-staging:
<<: *jupyterhub
......
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: external-ip
namespace: default
annotations:
nginx.ingress.kubernetes.io/permanent-redirect: ""
spec:
rules:
- host: "beta.binder.bioimagearchive.org"
http:
paths:
- backend:
serviceName: external-ip
servicePort: 80
path: /
- host: "gpu.beta.binder.bioimagearchive.org"
http:
paths:
- backend:
serviceName: external-ip
servicePort: 80
path: /
---
apiVersion: v1
kind: Service
metadata:
name: external-ip
spec:
ports:
- name: http
port: 80
clusterIP: None
type: ClusterIP
---
apiVersion: v1
kind: Endpoints
metadata:
name: external-ip
subsets:
- addresses:
- ip: 45.88.80.74
ports:
- name: http
port: 80
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment