Skip to content

Commit

Permalink
testing out node placeholder deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneknapp committed Aug 23, 2024
1 parent c21db15 commit 826cc80
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 59 deletions.
58 changes: 0 additions & 58 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,64 +337,6 @@ jobs:
hubploy deploy --timeout 30m workshop hub ${CIRCLE_BRANCH}
no_output_timeout: 30m


deploy-node-placeholder:
docker:
- image: buildpack-deps:bionic-scm
working_directory: ~/repo
steps:
- checkout

- run:
name: install google-cloud-sdk
command: |
export GCLOUD_URL=https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-457.0.0-linux-x86_64.tar.gz
curl -sSL $GCLOUD_URL | tar -xzf - -C ${HOME}
# Be careful with quote ordering here. ${PATH} must not be expanded
# Don't use ~ here - bash can interpret PATHs containing ~, but most other things can't.
# Always use full PATHs in PATH!
echo 'export PATH="${HOME}/google-cloud-sdk/bin:${PATH}"' >> ${BASH_ENV}
- run:
name: Setup helm3
command: |
curl -L https://get.helm.sh/helm-v3.13.3-linux-amd64.tar.gz | \
tar -xzf -
mv linux-amd64/helm /usr/local/bin
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
- run:
name: Install sops
command: |
echo $SOPS_ACCOUNT_KEY > ${HOME}/repo/sops.key
echo 'export GOOGLE_APPLICATION_CREDENTIALS=${HOME}/repo/sops.key' >> ${BASH_ENV}
mkdir -p ${HOME}/repo/bin
curl -sSL https://github.com/mozilla/sops/releases/download/v3.7.0/sops-v3.7.0.linux -o ${HOME}/repo/bin/sops
chmod 755 ${HOME}/repo/bin/sops
echo 'export PATH="${HOME}/repo/bin:${PATH}"' >> ${BASH_ENV}
- run:
name: Activate credentials for datahub cluster (spring-2024)
command: |
gcloud components install gke-gcloud-auth-plugin
sops -d -i deployments/datahub/secrets/gke-key.json
gcloud auth \
activate-service-account \
--key-file deployments/datahub/secrets/gke-key.json
gcloud container clusters \
--region=us-central1 --project=ucb-datahub-2018 \
get-credentials spring-2024
- run:
name: Deploy node placeholder chart
command: |
sops -d -i node-placeholder/secrets.yaml
helm upgrade \
--install --wait \
--namespace=node-placeholder node-placeholder node-placeholder \
-f node-placeholder/secrets.yaml --debug
deploy-support:
docker:
- image: buildpack-deps:bionic-scm
Expand Down
2 changes: 1 addition & 1 deletion node-placeholder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ nodePools:
requests:
# Some value slightly lower than allocatable RAM on the nodepool
memory: 29247442944
replicas: 0
replicas: 1
dlab:
nodeSelector:
hub.jupyter.org/pool-name: dlab-pool
Expand Down

0 comments on commit 826cc80

Please sign in to comment.