File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ Deployment to GKE using Docker and Kubernetes is a work in progress.
2
+
3
+ Build & push:
4
+ ```
5
+ docker build -t grc.io/jody-imageserver-test/imageserver:v4 .
6
+ gcloud docker -- push gcr.io/jody-imageserver-test/imageserver:v4
7
+ ```
8
+
9
+ Provision & deploy:
10
+ ```
11
+ 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
12
+ # Note: "min", "num", and "max" nodes sets the number PER ZONE.
13
+ kubectl apply -f deployment
14
+ kubectl get service imageserver # Will show the load balancer IP when it's ready
15
+ ```
16
+
17
+ Rolling update (and rollback if needed):
18
+ ```
19
+ kubectl set image deployments/imageserver imageserver-app=gcr.io/jody-imageserver-test/imageserver:v4
20
+ kubectl rollout undo deployments/imageserver
21
+ ```
22
+
23
+ Cleanup
24
+ ```
25
+ gcloud container clusters delete imageserver
26
+ ```
You can’t perform that action at this time.
0 commit comments