GithubHelp home page GithubHelp logo

mhaddon / gke-k8s Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 7.12 MB

Demo Kubernetes implementation with CI/CD

Shell 17.07% Dockerfile 2.30% Go 43.99% HTML 5.41% CSS 4.07% JavaScript 11.35% Groovy 15.82%
kubernetes docker golang jenkins vuejs bash

gke-k8s's Introduction

Kubernetes example airports application on GKE

This project is an example of implementing a REST MicroService architecture on Kubernetes which is hosted by GKE.

This project interacts with a CI/CD platform (Jenkins), in order to manage the building & deployment of applications.

Run Locally

If you want to run this project locally, you will have to implement Minikube functionality.

You can run the services locally with docker-compose. See docker-compose.yaml.

To build the images locally you will need to run the build.sh file in all the ./docker folders, and build.sh in ./services.

To convert the data you will need to install csvkit "brew install csvkit", and run ./data/convert_data.sh.

Configuring GKE

You will need to create a key file for your GKE service account.

Go to IAM & Admin -> Service accounts -> SA -> Create Key

Place this file in the root directory of the project and call it "gcp_sa.key.json"

Running on GKE

Install & configure gcp cli on local machine

You will need to manually build & release the jenkins container to your GKE registry

Change which userspaces you want in ./configs/users.json

Configure values in .env

Run ./setup.sh

After the cluster is setup you can access the cluster as each user with

./run.sh "$USERNAME"

When you load the dashboard you can use the kube.config file in the secrets/${USERNAME} folder to authenticate. If you are authenticating as a user that is not an admin you will not be able to see the default namespace, or even list the available namespaces. So you have to ensure your URL is pointing to your namespace.

After this you can access Jenkins to build & deploy the rest of the images

The Jenkins credentials are: admin/test

gke-k8s's People

Contributors

mhaddon avatar

Watchers

James Cloos 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.