diff --git a/.github/workflows/deploy-to-aks.yml b/.github/workflows/deploy-to-aks.yml index 48239fd..33131e8 100644 --- a/.github/workflows/deploy-to-aks.yml +++ b/.github/workflows/deploy-to-aks.yml @@ -4,7 +4,7 @@ name: Deploy to AKS on: push: branches: - - main + - production - staging workflow_dispatch: @@ -17,7 +17,7 @@ jobs: build-and-deploy: runs-on: ubuntu-latest # production if is main branch, staging if it is staging branch - environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'staging' }} + environment: ${{ github.ref == 'refs/heads/production' && 'production' || 'staging' }} steps: - name: Checkout uses: actions/checkout@v4 @@ -54,7 +54,7 @@ jobs: K8S_NAMESPACE: ${{ vars.K8S_NAMESPACE }} - name: Connect to AKS - run: az aks get-credentials --resource-group ${{ secrets.AZURE_RESOURCE_GROUP }} --name ${{ secrets.AZURE_KUBERNETES_CLUSTER }} + run: az aks get-credentials --resource-group ${{ vars.AZURE_RESOURCE_GROUP }} --name ${{ vars.AZURE_KUBERNETES_CLUSTER }} - name: Deploy to AKS run: | diff --git a/basehub/Chart.yaml b/basehub/Chart.yaml index 2d36f2c..4ff9ed1 100644 --- a/basehub/Chart.yaml +++ b/basehub/Chart.yaml @@ -5,5 +5,5 @@ name: basehub version: 0.1.0 dependencies: - name: jupyterhub - version: 3.1.0 + version: 3.3.8 repository: https://jupyterhub.github.io/helm-chart/ diff --git a/basehub/files/etc/jupyterhub/templates/login.html b/basehub/files/etc/jupyterhub/templates/login.html index c3d4f2b..05a6882 100644 --- a/basehub/files/etc/jupyterhub/templates/login.html +++ b/basehub/files/etc/jupyterhub/templates/login.html @@ -11,12 +11,6 @@ - - @@ -54,8 +48,10 @@

Login to AiiDAlab

{% endblock login %}
-

Welcome to the AiiDAlab deployment for PSI staff!

-

This AiiDAlab server is deployed and maintained by the Materials Software and Data Group (MSD) and its aim is to serve PSI staff in facilitating the execution and analysis of DFT simulations.

+

Welcome to the AiiDAlab demo server!

+

This AiiDAlab server is deployed and maintained by the AiiDAlab team.

+

The goal of the server is to provide a platform for users to try out AiiDAlab without the need to install it locally.

+

The server is not intended for production use, and the data on the server may be deleted at any time without notice.

Login to AiiDAlab

diff --git a/basehub/values.yaml.j2 b/basehub/values.yaml.j2 index 7fe6fa7..e7e3cb2 100644 --- a/basehub/values.yaml.j2 +++ b/basehub/values.yaml.j2 @@ -12,20 +12,22 @@ jupyterhub: singleuser: image: name: ghcr.io/aiidalab/qe - tag: pr-781 + tag: edge pullPolicy: Always cmd: - start-singleuser.sh extraEnv: JUPYTERHUB_SINGLEUSER_APP: notebook.notebookapp.NotebookApp cpu: - guarantee: 1 - limit: 2 + guarantee: 1.5 + limit: 1.5 memory: - guarantee: 4G - limit: 8G + guarantee: 5G + limit: 5G storage: - type: none # user don't have persistent storage, the data will be lost after the pod is deleted + homeMountPath: /home/jovyan + dynamic: + storageClass: default extraVolumes: - name: hub-templates configMap: @@ -43,20 +45,24 @@ jupyterhub: name: hub-external - mountPath: /etc/jupyter name: etc-jupyter - profileList: - # A potential issue that profiles share the same PVC - # using multiple storageClass can solve this issue, but we do not - # need to do this for now. - - display_name: Quantum ESPRESSO App image - description: Ready to run Quantum ESPRESSO app. - default: true - - display_name: AiiDA in JupyterLab - description: AiiDA in JupyterHub for tutorials. - kubespawner_override: - image: ghcr.io/aiidalab/base-with-services:2024.1020 - default_url: /lab - environment: - JUPYTERHUB_SINGLEUSER_APP: jupyter_server.serverapp.ServerApp + # profileList: + # # A potential issue that profiles share the same PVC + # # using multiple storageClass can solve this issue, but we do not + # # need to do this for now. + # - display_name: Quantum ESPRESSO App image + # description: Ready to run Quantum ESPRESSO app. + # default: true + # - display_name: Minimal bare AiiDAlab image + # description: If you want have a bare AiiDAlab and install you own app from store. + # kubespawner_override: + # image: ghcr.io/aiidalab/full-stack:v2023.1014 + # - display_name: AiiDA in JupyterLab + # description: JupyterLab with AiiDA installed for tutorials. + # kubespawner_override: + # image: ghcr.io/aiidalab/base-with-services:v2023.1014 + # default_url: /lab + # environment: + # JUPYTERHUB_SINGLEUSER_APP: jupyter_server.serverapp.ServerApp hub: db: pvc: