8000 GitHub - jmarley/gcloud-node
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jmarley/gcloud-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud and Node, and Quay.io

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.

Deploy

$ sh ./scripts/create-cluster.sh

Test

Container Testing

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!%

Kubernetes deployment status

$ 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!%

Cleanup

$ sh ./scripts/cleanup.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0