Coder Social home page Coder Social logo

circleci-public / circleci-demo-k8s-gcp-hello-app Goto Github PK

View Code? Open in Web Editor NEW
14.0 9.0 19.0 12 KB

A sample project that demonstrates using CircleCI to deploy to Google Kubernetes Engine on GCP

Home Page: https://circleci.com/gh/CircleCI-Public/circleci-demo-k8s-gcp-hello-app

License: MIT License

Dockerfile 10.06% Go 89.94%
circleci circleci-demos kubernetes google-cloud gcp gcloud gke google-kubernetes-engine

circleci-demo-k8s-gcp-hello-app's Introduction

circleci-demo-k8s-gcp-hello-app

CircleCI

This project demonstrates continuous delivery with CircleCI and Google Kubernetes Engine using Docker and Kubernetes.

This project is based on the demo tutorial here: https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app

The code for the hello-app application was based on this repository: https://github.com/GoogleCloudPlatform/kubernetes-engine-samples/tree/master/hello-app

Prerequisites

  • GCP project: A GCP project created from the Kubernetes Engine page in the Google Cloud Platform Console (or one with Kubernetes Engine API and related services enabled)
  • GCP service account: A GCP service account must already exist before running the build, and it needs to have sufficient privileges to manage the project's resources

Required Environment Variables

Note that the following environment variables must be set for the project on CircleCI via the project settings page:

  • GCLOUD_SERVICE_KEY: <base64-encoded GCP service account key value>
  • GOOGLE_PROJECT_ID: e.g. hello-app-12345
  • GOOGLE_CLUSTER_NAME: e.g. cluster-1 (the cluster will be created if it doesn't yet exist)
  • GOOGLE_COMPUTE_ZONE: e.g. us-central1-a
  • DOCKER_IMAGE_NAME: e.g. gcr.io/hello-app-12345/hello-app (should match project id)
  • DELETE_CLUSTER_AT_END_OF_TEST: true|false (If set to true, the deployment's resources including the cluster named by GOOGLE_CLUSTER_NAME will be deleted after the test. This will prevent unwanted charges incurring on your GCP account)

Useful References

circleci-demo-k8s-gcp-hello-app's People

Contributors

lokst avatar ryan-wren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.