Skip to content

Commit 125ea28

Browse files
author
Jody McIntyre
committed
Add README for deployment stuff
1 parent daf3c55 commit 125ea28

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

deployment/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Deployment to GKE using Docker and Kubernetes is a work in progress.
2+
3+
Build & push:
4+
```
5+
docker build -t imageserver . && docker run -ti -p 9091:9091/tcp wip:latest
6+
docker tag imageserver:latest gcr.io/jody-imageserver-test/imageserver
7+
gcloud docker -- push gcr.io/jody-imageserver-test/imageserver
8+
```
9+
10+
Provision & deploy:
11+
```
12+
gcloud beta container clusters create imageserver --enable-autoscaling --min-nodes=1 --max-nodes=3 --num-nodes=1 --zone=us-central1-a --additional-zones=us-central1-b,us-central1-c --enable-autoupgrade --cluster-version=1.7.3
13+
# Note: "min", "num", and "max" nodes sets the number PER ZONE.
14+
kubectl apply -f deployment
15+
kubectl get service imageserver # Will show the load balancer IP when it's ready
16+
```
17+
18+
Cleanup
19+
```
20+
gcloud container clusters delete imageserver
21+
```

0 commit comments

Comments
 (0)