Skip to content

Commit

Permalink
Cleanup cloud deploy guide (pangeo-data#698)
Browse files Browse the repository at this point in the history
* more meeting info

* summer meeting registration is closed

* quick cleanup for cloud deployment
  • Loading branch information
Joe Hamman authored and rabernat committed Aug 23, 2019
1 parent 9cad4fb commit 376ce34
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 58 deletions.
6 changes: 0 additions & 6 deletions docs/setup_guides/cloud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,6 @@ you can do so by running::
gcloud compute addresses create pangeo-jhubip --region $REGION
gcloud compute addresses list | grep pangeo-jhubip

Other things you might want to configure, but that can be left as is:

- EXTRA_PIP_PACKAGES: for adding some python modules to your user environment.
- GCSFUSE_BUCKET: for mounting some google cloud storage bucket as a standard
file system.

The other file is `secret_config.yaml`_, which specifies cluster specific
encryption tokens.

Expand Down
1 change: 0 additions & 1 deletion gce/setup-guide/4_upgrade_helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
set -e

helm upgrade --force --recreate-pods --devel pangeohub pangeo/pangeo \
# --version=$VERSION \
-f secret_config.yaml \
-f jupyter_config.yaml
3 changes: 0 additions & 3 deletions gce/setup-guide/gce-pangeo-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,3 @@ export CLUSTER_NAME='pangeo-cluster'
# https://cloud.google.com/compute/pricing
# change the machine typer based on your computing needs
export WORKER_MACHINE_TYPE='n1-standard-4'

# HELM Pangeo version if needed
export VERSION="0.1.1-c02878a"
48 changes: 0 additions & 48 deletions gce/setup-guide/jupyter_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,13 @@

jupyterhub:
singleuser:
extraEnv:
EXTRA_PIP_PACKAGES: >-
GCSFUSE_BUCKET: pangeo-data
storage:
extraVolumes:
- name: fuse
hostPath:
path: /dev/fuse
extraVolumeMounts:
- name: fuse
mountPath: /dev/fuse
cloudMetadata:
enabled: true
cpu:
limit: 4
guarantee: 1
memory:
limit: 14G
guarantee: 4G

hub:
extraConfig:
customPodHook: |
from kubernetes import client
def modify_pod_hook(spawner, pod):
pod.spec.containers[0].security_context = client.V1SecurityContext(
privileged=True,
capabilities=client.V1Capabilities(
add=['SYS_ADMIN']
)
)
return pod
c.KubeSpawner.modify_pod_hook = modify_pod_hook
c.JupyterHub.logo_file = '/usr/local/share/jupyterhub/static/custom/images/logo.png'
c.JupyterHub.template_paths = ['/usr/local/share/jupyterhub/custom_templates/',
'/usr/local/share/jupyterhub/templates/']
extraVolumes:
- name: custom-templates
gitRepo:
repository: "https://github.com/pangeo-data/pangeo-custom-jupyterhub-templates.git"
revision: "b09721bb1a1248dc115730d3c8a791600eae257e"
extraVolumeMounts:
- mountPath: /usr/local/share/jupyterhub/custom_templates
name: custom-templates
subPath: "pangeo-custom-jupyterhub-templates/templates"
- mountPath: /usr/local/share/jupyterhub/static/custom
name: custom-templates
subPath: "pangeo-custom-jupyterhub-templates/assets"

cull:
enabled: true
users: false
timeout: 1200
every: 600

# this section specifies the IP address for pangeo
proxy:
service:
Expand Down

0 comments on commit 376ce34

Please sign in to comment.