Giter Club home page Giter Club logo

jenkins's Introduction

test

Create your cluster


Use your favorite cloud provider!

Install and Configure Tools


kubectl

https://kubernetes.io/docs/tasks/tools/install-kubectl/

Helm

https://helm.sh/docs/intro/install/

Tiller

helm init

Create Kubernetes Resources


Create the Jenkins namespace

kubectl create ns jenkins

Create the CasC ConfigMap

kubectl create configmap casc -n jenkins --from-file casc

Create Secret for Storage

kubectl create secret generic <secretName> --from-file=<secretFile> -n jenkins

Installing Jenkins


helm install jenkins        \       
    stable/jenkins          \
    -n jenkins              \
    -f jenkins.yaml         \
    --set master.adminUser=<admin username>,master.adminPassword=<admin password>

Upgrading Jenkins


  1. Update the configuration files in casc
  2. Update the ConfigMap kubectl create configmap casc -n jenkins --from-file casc -o yaml --dry-run | kubectl replace -f -
  3. Apply the upgrade
helm upgrade jenkins        \
    stable/jenkins          \
    -n jenkins              \
    -f jenkins.yaml
  1. Reload the configuration Manage Jenkins > Configuration as Code > Reload Existing Configuration

Development Notes


Things to think about:

  • using the --atomic or --cleanup-on-fail flags during helm deployments
  • configmap only takes the root level directory - no subdirectories
  • we need to consider how to clean up after merges
    • delete namespace (includes service account and app), as well as cluster role binding for the service account
    • need to implement cleanup for backup data
  • blue green deployment? need to think it through
  • known error: helm marks deployment as successfull before waiting for pods to be ready
    • if CasC fails, Jenkins will stop (failed deploy) but Helm shows success
  • check for apply configmap

jenkins's People

Contributors

fscottmiller avatar

Watchers

 avatar  avatar  avatar

Forkers

skulasekar

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.