Giter Club home page Giter Club logo

jenkins-k8s-pipeline's Introduction

Setting up the CI Pipeine

You need a configured K8s Cluster. Also Helm should be aready setup

Step 1 - install nginx ingress controller

helm upgrade --install nginx-ingress stable/nginx-ingress

Setup CRDs

pp kubectl apply \
    -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.8/deploy/manifests/00-crds.yaml

Add Jetstack repo

pp helm repo add jetstack https://charts.jetstack.io

Create CertManager namespace

pp kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.6/deploy/manifests/01-namespace.yaml

Setup the CertManager

pp helm upgrade --install  cert-manager --namespace cert-manager jetstack/cert-manager

Setup the ClusterIssuer

Cluster issuers can be reached across the cluster and can issue ssl certs for ingress.

pp kubectl apply -f cluster-issuer.yaml

Deploy the Jenkins Helm Chart

pp helm upgrade --install --namespace buildtools -f jenkins-helm-config.yaml --debug sdf-build stable/jenkins

It will generate an ingress definition that is similar to :

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    certmanager.k8s.io/cluster-issuer: letsencrypt-prod
    ingress.kubernetes.io/secure-backends: "true"
    kubernetes.io/ingress.class: nginx
    kubernetes.io/tls-acme: "true"

  name: sdf-build-jenkins
spec:
  rules:
  - host: "build.voicea.app"
    http:
      paths:
      - backend:
          serviceName: sdf-build-jenkins
          servicePort: 8080
  tls:
    - hosts:
      - build.voicea.app
      secretName: build.voicea.app

jenkins-k8s-pipeline's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mnemonic01

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.