Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Google Cloud Platform Solutions

You're reading from   Building Google Cloud Platform Solutions Develop scalable applications from scratch and make them globally available in almost any language

Arrow left icon
Product type Course
Published in Mar 2019
Publisher Packt
ISBN-13 9781838647438
Length 778 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (3):
Arrow left icon
Steven Porter Steven Porter
Author Profile Icon Steven Porter
Steven Porter
Legorie Rajan PS Legorie Rajan PS
Author Profile Icon Legorie Rajan PS
Legorie Rajan PS
Ted Hunter Ted Hunter
Author Profile Icon Ted Hunter
Ted Hunter
Arrow right icon
View More author details
Toc

Table of Contents (29) Chapters Close

Title Page
Copyright and Credits
About Packt
Contributors
Preface
1. Why GCP? FREE CHAPTER 2. The Google Cloud Console 3. APIs, CLIs, IAM, and Billing 4. Google App Engine 5. Google Kubernetes Engine 6. Google Cloud Functions 7. Google Compute Engine 8. NoSQL with Datastore and Bigtable 9. Relational Data with Cloud SQL and Cloud Spanner 10. Google Cloud Storage 11. Stackdriver 12. Change Management 13. GCP Networking for Developers 14. Messaging with Pub/Sub and IoT Core 15. Integrating with Big Data Solutions on GCP 16. Compute 17. Storage and Databases 18. Networking 19. Security 20. Machine Learning and Big Data 21. Management Tools 22. Best Practices 1. Other Books You May Enjoy Index

Hosting a Node.js application on Kubernetes Engine


We will containerize the KeystoneJS application and host it on Google Kubernetes Engine (GKE). GKE is powered by the container management system, Kubernetes. Containers are built to do one specific task, and so we'll separate the application and the database as we did for App Engine.

The MongoDB container will host the MongoDB database with the data stored on external disks. The data within a container is transient, and so we need an external disk to safely store the MongoDB data. The App Container includes a Node.js runtime, that will run our KeystoneJS application.

It will communicate with the Mongo Container and also expose itself to the end user:

Note

You'll be using the following services and others for this recipe:

 

  • Google Kubernetes Engine
  • GCE
  • Google Container Registry

Getting ready

The following are the initial setup verification steps to be taken before the recipe can be executed:

  1. Create or select a GCP project.
  2. Enable billing and enable...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image