This project is an exploration into how gcloud can be used to spin up node js app in googles PaaS offering on Google Compute Engine. I thought it would be cool as well to use CoreOS registry; Quay.io.
There isn’t anything special about this project, it was just something I wanted to do and follow the k8’s guide to see some differences between it and OSE.
Build Image
By default when the project is pushed to github and build is created on the fly by Quay.io
Run Container
$ docker run -d -p 8080:8080 --name hello-world quay.io/jmarley/gcloud-testing
Test Container
$ curl http://localhost:8080
Hello World!%
$ kubectl get deployments
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
hello-world 1 1 1 1 6m
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
hello-world-4289250167-yuod8 1/1 Running 0 39s
External access
$ kubectl get service [12:20:14]
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
hello-world 10.107.244.49 104.198.99.39 8080/TCP 1m
kubernetes 10.107.240.1 <none> 443/TCP 48m-
Endpoint is up
$ curl http://104.198.99.39:8080
Hello World!%