Skip to content

Commit

Permalink
Change schema to auto disable all apps
Browse files Browse the repository at this point in the history
  • Loading branch information
ctr26 committed Dec 8, 2021
1 parent 3e4884d commit 33ea5cc
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 27 deletions.
15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@

BASEDIR = $(shell pwd)
SOURCE:=$(shell source secrets.env)
# include .secrets

deploy.prod:
# include secrets.env
# export

deploy.production:
helmsman --apply --debug --group production -f helmsman.yaml -f helmsman/production.yaml -f helmsman/binder.yaml
deploy.staging:
helmsman --apply --debug --group staging -f helmsman.yaml -f helmsman/staging.yaml -f helmsman/binder.yaml

ci.deploy.prod:
helmsman --apply --debug --group production -f helmsman/token.yaml -f helmsman.yaml -f helmsman/production.yaml
deploy.staging: helmsman --apply --debug --group staging -f helmsman/token.yaml -f helmsman.yaml -f helmsman/staging.yaml
ci.deploy.staging: helmsman --apply --debug --group staging -f helmsman/token.yaml -f helmsman.yaml -f helmsman/staging.yaml

binder.deploy.prod:
helmsman --apply --debug --target binderhub-production -f helmsman.yaml -f helmsman/production.yaml --always-upgrade
Expand Down Expand Up @@ -72,6 +79,8 @@ gpu.beta.binder.deploy.prod.dry:
gpu.cert.deploy.prod:
helmsman --apply --debug --target cert-manager-production -f helmsman.yaml -f helmsman/production.yaml -f helmsman/gpu.yaml --always-upgrade

gpu.nvdp.production:
helmsman --apply --debug --target nvidia-gpu-operator -f helmsman.yaml -f helmsman/production.yaml -f helmsman/gpu.yaml --always-upgrade


gke.binder.deploy.prod:
Expand Down
55 changes: 31 additions & 24 deletions helmsman.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# context: minikube
settings:
kubeContext: cpu
kubeContext: binder.bioimagearchive.org
# globalHooks:
# preUpgrade: "ingress/gpu_redirect.yaml"

Expand Down Expand Up @@ -42,12 +42,14 @@ helmRepos:
# prometheus-community: "https://prometheus-community.github.io/helm-charts"
# kube-state-metrics: "https://kubernetes.github.io/kube-state-metrics"
nvdp: "https://nvidia.github.io/k8s-device-plugin"
nvidia: "https://nvidia.github.io/gpu-operator"

appsTemplates:
binderhub: &binderhub
name: "binderhub"
chart: "jupyterhub/binderhub"
version: "0.2.0-n645.h06139f0"
priority: -8
# version: "0.2.0-n575.h2dc091f"
# version: "0.2.0-n467.hbc700d4"
# version: "0.2.0-n519.hf5c1a19"
Expand All @@ -59,6 +61,7 @@ appsTemplates:
# # protected: true
wait: false # Lethal for binderhub
timeout: 180
enabled: false
hooks:
postUpgrade: "fuser/fuser.yml"
postInstall: "fuser/fuser.yml"
Expand Down Expand Up @@ -111,7 +114,8 @@ appsTemplates:
# protected: true
wait: false
timeout: 1200
enabled: true
enabled: false
priority: -9
set:
proxy.secretToken: "$SECRET_JUPYTERHUB_PROXY_TOKEN"
auth.github.clientId: "$SECRET_GITHUB_CLIENTID"
Expand All @@ -127,7 +131,8 @@ appsTemplates:
version: "0.2.0-n563"
wait: false # Lethal for binderhub
timeout: 1200
enabled: true
enabled: false
priority: -11
set:
binderhub.registry.username: "$CI_REGISTRY_USER"
binderhub.registry.password: "$CI_REGISTRY_PASSWORD"
Expand All @@ -147,8 +152,8 @@ appsTemplates:
name: "daskgateway"
chart: "daskgateway/dask-gateway"
version: "0.9.0"
enabled: true
priority: 0
enabled: false
priority: -10
timeout: 120

apps:
Expand All @@ -157,7 +162,7 @@ apps:
name: "trow"
namespace: "trow"
chart: "trow/trow"
enabled: true
enabled: false
version: "0.3.3"
valuesFiles:
- trow/values.yaml
Expand All @@ -167,7 +172,7 @@ apps:
# name: "tritoninferenceserver"
# namespace: "tritoninferenceserver"
# chart: "triton/tritoninferenceserver"
# enabled: true
# enabled: false
# version: "1.0.0"
# valuesFiles:
# - triton/values.yaml
Expand All @@ -176,8 +181,8 @@ apps:
name: "nvidia-device-plugin"
namespace: "nvidia-device-plugin"
chart: "nvdp/nvidia-device-plugin"
enabled: true
version: "0.9.0"
enabled: false
version: "0.10.0"
# valuesFiles:
# - triton/values.yaml

Expand All @@ -186,7 +191,7 @@ apps:
# namespace: "tritoninferenceserver"
# chart: "prometheus-community/prometheus"
# # chart: "prometheus/prometheus-adapter"
# enabled: true
# enabled: false
# version: "14.7.1"
# # hooks:
# # postUpgrade:
Expand All @@ -201,7 +206,8 @@ apps:
namespace: "docker-registry"
chart: "twuni/docker-registry"
group: "production"
enabled: true
enabled: false
priority: -3
version: "1.11.0"
set:
proxy:enabled: true
Expand All @@ -211,21 +217,22 @@ apps:
- docker-registry/values.yaml


nginx-ingress:
name: "nginx-ingress"
namespace: "nginx-ingress"
chart: "nginx-stable/nginx-ingress"
enabled: false
version: "3.35.0"
valuesFiles:
- ingress/nginx-ingress.yaml
# nginx-ingress:
# name: "nginx-ingress"
# namespace: "nginx-ingress"
# chart: "nginx-stable/nginx-ingress"
# enabled: false
# version: "3.35.0"
# valuesFiles:
# - ingress/nginx-ingress.yaml

ingress-nginx:
name: "ingress-nginx"
namespace: "ingress-nginx"
chart: "ingress-nginx/ingress-nginx"
group: "production"
enabled: true
enabled: false
priority: 0
version: "3.35.0"
valuesFiles:
- ingress/nginx-ingress.yaml
Expand Down Expand Up @@ -356,7 +363,7 @@ apps:
# chart: "jupyterhub/jupyterhub"
# # version: "0.9.0"
# version: "0.10.2-n047.hb387f987"
# enabled: true
# enabled: false
# priority: 0
# timeout: 1200
# # wait: true
Expand Down Expand Up @@ -394,7 +401,7 @@ apps:
cert-manager-production:
name: "cert-manager"
chart: "jetstack/cert-manager"
enabled: true
enabled: false
priority: 0
# timeout: 120
version: "v1.4.2"
Expand All @@ -421,7 +428,7 @@ apps:
# chart: "jupyterhub/jupyterhub"
# # version: "0.9.0"
# version: "0.10.2-n047.hb387f987"
# enabled: true
# enabled: false
# priority: 0
# timeout: 1200
# # wait: true
Expand All @@ -438,6 +445,6 @@ apps:
# protected: true
# chart: "jupyterhub/binderhub"
# version: "0.2.0-n361.h6f57706"
# enabled: true
# enabled: false
# priority: 0
# # set:
44 changes: 44 additions & 0 deletions helmsman/binder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
settings:
kubeContext: binder.bioimagearchive.org
apps:
binderhub-production:
enabled: true
valuesFiles:
- "../binderhub/config.yaml"
- "../binderhub/production/config.yaml"
# binderhub-production-gpu:
# enabled: false
# trow:
# enabled: false
# nvidia-device-plugin:
# enabled: false
docker-registry:
enabled: true
ingress-nginx:
enabled: true
# daskgateway-production:
# enabled: false
# binderhub-staging:
# enabled: false
# binderhub-production:
# enabled: false
persistent-binderhub-production:
enabled: true
# binderhub-production-gpu:
# enabled: false
# binderhub-staging-gpu:
# enabled: false
jupyterhub-sandbox-production:
enabled: true
jupyterhub-sandbox-staging:
enabled: true
# jupyterhub-sandbox-production:
# enabled: false
# jupyterhub-github-staging:
# enabled: false
# jupyterhub-github-production:
# enabled: false
cert-manager-production:
enabled: true
# nvidia-gpu-operator:
# enabled: false

0 comments on commit 33ea5cc

Please sign in to comment.