Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AWS config #33

Merged
merged 2 commits into from
Apr 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion 2024-RIKEN-AWS/JupyterNotebook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ gcloud container clusters create flux-jupyter --project $GOOGLE_PROJECT \
#### AWS

Here is how to create an equivalent cluster on AWS (EKS). We will be using [eksctl](https://eksctl.io/introduction/), which
you should install.
requires [aws-iam-authenticator](https://github.com/kubernetes-sigs/aws-iam-authenticator). You will need both binaries to create and manage EKS clusters.

```bash
# Create an EKS cluster with autoscaling with default storage
Expand Down Expand Up @@ -980,6 +980,8 @@ kubectl get service proxy-public --output jsonpath='{.status.loadBalancer.ingres

Note that for Google, it looks like an ip address. For aws you get a string monster!

If you want to use a CNAME to map an address to this target with HTTPS enabled, you will need to enter the ELB DNS name in the target field for the provider (e.g., Cloudflare). Letsencrypt will fail the first time you attempt to create the cluster with SSL specified because there will be no ELB to map to the CNAME. You will need to create the cluster with `helm`, find the proxy-public service, enter it into the CNAME record and save it, and then delete the "autohttps" pods. They will be recreated and should generate the SSL certs at that point.

```console
a054af2758c1549f780a433e5515a9d4-1012389935.us-east-2.elb.amazonaws.com
```
Expand Down
20 changes: 11 additions & 9 deletions 2024-RIKEN-AWS/JupyterNotebook/aws/config-aws-ssl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,21 @@ singleuser:
- name: init-myservice
image: ghcr.io/flux-framework/flux-jupyter-init:riken-2024
command: ["/entrypoint.sh"]
volumeMounts:
- name: flux-tutorial
mountPath: /home/jovyan
# volumeMounts can clobber the container /home
# volumeMounts:
# - name: flux-tutorial
# mountPath: /home/jovyan

# This is how we get the tutorial files added
storage:
type: none

# gitRepo volume is deprecated so we need another way
# https://kubernetes.io/docs/concepts/storage/volumes/#gitrepo
extraVolumes:
- name: flux-tutorial
emptyDir: {}
extraVolumeMounts:
- name: flux-tutorial
mountPath: /home/jovyan
# volumeMounts can clobber the container /home
# extraVolumes:
# - name: flux-tutorial
# emptyDir: {}
# extraVolumeMounts:
# - name: flux-tutorial
# mountPath: /home/jovyan
Loading