Skip to content

Commit

Permalink
Merge pull request 2i2c-org#3402 from 2i2c-org/hhmi_add_mysql_database
Browse files Browse the repository at this point in the history
hhmi: add ephemeral mysql db sidecar container
  • Loading branch information
jmunroe authored Nov 11, 2023
2 parents b50605e + cfc1a86 commit 64c8fa2
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions config/clusters/hhmi/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,32 @@ basehub:
url: ""
custom_html: <a href="https://www.hhmi.org/">HHMI</a> and <a href="https://strategiesos.org/about/">Stratos</a>
singleuser:
extraContainers:
- name: mysql
image: datajoint/mysql # following the spyglass tutorial at https://lorenfranklab.github.io/spyglass/latest/notebooks/00_Setup/#existing-database
ports:
- name: mysql
containerPort: 3306
resources:
limits:
# Best effort only. No more than 1 CPU, and if mysql uses more than 4G, restart it
memory: 4Gi
cpu: 1.0
requests:
# If we don't set requests, k8s sets requests == limits!
# So we set something tiny
memory: 64Mi
cpu: 0.01
env:
# Configured using the env vars documented in https://lorenfranklab.github.io/spyglass/latest/notebooks/00_Setup/#existing-database
- name: MYSQL_ROOT_PASSWORD
value: "tutorial"
defaultUrl: /lab
profileList:
- display_name: "Loren Frank Lab"
default: true
description: "Spyglass-NWB container for the Loren Frank Lab"
slug: frankloren
slug: lorenfrank
profile_options:
image:
display_name: Image
Expand All @@ -51,7 +71,7 @@ basehub:
display_name: Spyglass-NWB
slug: spyglass
kubespawner_override:
image: "quay.io/2i2c/hhmi-spyglass-nwb-image:f543e3444053"
image: "quay.io/2i2c/hhmi-spyglass-nwb-image:28e92dae096f"
- display_name: "Community Images"
description: "Start a container with a community maintained image"
slug: community
Expand Down

0 comments on commit 64c8fa2

Please sign in to comment.