Code Monkey home page Code Monkey logo

centralized-helm-chart's Introduction

centralized-helm-chart

Centralized helm chart microservice template deployed to GCS w/ gitlab-ci

When deploying a lot of similar workload to kubernetes, it is convenient to use helm for templating and release management.

This repo implements a kubernetes-builder image with its dependencies (google-cloud-sdk with kubectl, helm, ...) and automatically packages a helm chart and uploads it to Google Cloud Storage bucket.

Each microservice has its own gitlab repo and values.yaml. In its own .gitlab-ci.yml you can do something like this:

deploy-devel:
    stage: deploy-dev
...
    script:
    - cd build
    - helm init --upgrade
    - helm repo add my-helm-chart https://my-helm-charts.storage.googleapis.com/
    - helm repo list | grep my-helm-chart
    - |
      helm upgrade --install --namespace=$NAMESPACE --debug "$APP_NAME"-devel -f helm/values.yaml \
        --set image.repository=$IMAGE_REPO \
        --set image.tag=$IMAGE_TAG \
        --set namespace=$NAMESPACE \
        --set env.sqlUser=$SQL_USER \
        --set env.sqlPassword=$SQL_PASSWORD \
        --set env.sqlName=$SQL_NAME \
        --set env.host=$URL_HOST \
        my-helm-chart/my-service

... and other stages with their namespaces and so on...

check .gitlab-ci.yml to see how the helm chart is packaged and deployed to GCS

don't forget to set the proper GITLAB_VARIABLES

centralized-helm-chart's People

Stargazers

 avatar  avatar  avatar

Watchers

 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.