-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
56 lines (45 loc) · 1.67 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.PHONY: google, aws-config, gcp-config
GCP_RELEASE=gcp-dask-gateway
AWS_RELEASE=aws-dask-gateway
NAMESPACE=dask-gateway
VERSION=0.7.1
google:
cd gcp/gke && \
terraform apply --var-file=gcp-cluster.tfvars --auto-approve
config-aws:
aws eks --region=us-west-2 update-kubeconfig --name=earthcube-cluster --kubeconfig=aws-config
config-gcp:
gcloud container clusters get-credentials earthcube --zone=us-central1
dask-gcp-ns:
kubectl create namespace dask-gateway --cluster=gke_pangeo-181919_us-central1_earthcube
dask-aws-ns:
kubectl create namespace dask-gateway --kubeconfig=aws-config
# TODO: activate kubectl before running
# TODO: run kubectl create namespace dask-gateway
dask-gcp:
helm --kube-context=gke_pangeo-181919_us-central1_earthcube upgrade --install \
--namespace $(NAMESPACE) \
--version $(VERSION) \
--values secrets/config.yaml \
--values config.yaml \
--values config-gcp.yaml \
$(GCP_RELEASE) \
dask-gateway/dask-gateway
# TODO: activate kubectl before running
# TODO: run kubectl create namespace dask-gateway
dask-aws:
helm --kubeconfig=aws-config upgrade --install \
--namespace $(NAMESPACE) \
--version $(VERSION) \
--values secrets/config.yaml \
--values config.yaml \
$(AWS_RELEASE) \
dask-gateway/dask-gateway
print-ips:
kubectl --namespace=dask-gateway get service traefik-aws-dask-gateway --kubeconfig=aws-config
kubectl --namespace=dask-gateway get service traefik-gcp-dask-gateway --cluster=gke_pangeo-181919_us-central1_earthcube
lab:
docker run -it --rm \
--mount type=bind,src=$(PWD),target=/home/jovyan/ \
-p 8888:8888 tomaugspurger/pangeo-multicloud:2020.05.12.2 \
-- jupyter lab --ip=0.0.0.0 --no-browser --LabApp.token=''