Code Monkey home page Code Monkey logo

jenkinsforme's Introduction

jenkins

Jenkins - minikube and pod template

  • Jenkins configuration as code
  • Jenkins pipeline as code
  • Jenkins Shared Lib
  • Jenkins Dynamic pod template
  • Customized yaml for our own CI
  • Spring Cloud Config Server
  • Ansible
  • Jenkins + Config Server + Ansible

Initial setup

Docker and Docker Compose Version

❯ docker-compose version
docker-compose version 1.29.2, build 5becea4c
docker-py version: 5.0.0
CPython version: 3.9.0
OpenSSL version: OpenSSL 1.1.1h  22 Sep 2020
❯ docker version
Client:
 Cloud integration: v1.0.20
 Version:           20.10.10
 API version:       1.41
 Go version:        go1.16.9
 Git commit:        b485636
 Built:             Mon Oct 25 07:43:15 2021
 OS/Arch:           darwin/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.10
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.9
  Git commit:       e2f740d
  Built:            Mon Oct 25 07:41:30 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.11
  GitCommit:        5b46e404f6b9f661a205e28d59c982d3634148f8
 runc:
  Version:          1.0.2
  GitCommit:        v1.0.2-0-g52b36a2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Setup Minikube for Jenkins

minikube start --memory 8192 --cpus 4 --driver=docker
kubectl create ns jenkins
kubectl -n jenkins apply -f manifest/sa.yaml
k -n jenkins get sa jenkins
kubectl -n jenkins get secret 
# kubectl -n jenkins get secret jenkins-token-qxtds -o jsonpath={.data.token} | base64 -d

Kube and Docker Domains

  • host.docker.internal
  • host.minikube.internal
eyJhbGciOiJSUzI1NiIsImtpZCI6IjF2YVdlX0Z1ZE5FY1RKOVMtRHQydFhlWlNYR3o4RzZKcGQwZDBkNXFzNXMifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJqZW5raW5zIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImplbmtpbnMtdG9rZW4tcXh0ZHMiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiamVua2lucyIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6ImQ1N2E0OWE3LTcyMzAtNDgzOC05NTRjLTdjZDI5OGRiNjQ0ZiIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpqZW5raW5zOmplbmtpbnMifQ.py9t2rYKOhPzELl4-qEpoyGHxADGbGYC5bGJ0jbr6LRESBON0lHKEl3MAGKdSpLEfGW3AnK8qgVWdb1_rh_ezhKJuEPGDmYFzWjryNOD49PuD2z4bSrfT11QHCSyb4aTXqYZxD-lbktWXG9jQ-EatAxBfUvUbYwejDBFgyzY9xCHEzpnsEcrHu8Ald_70hAlcwACPsCt5DizX1_qB8jHVq3AhEoLGZnq3InLI0bjEmW-0ANBnZk7AwNa-qHlAWBdhyZKTqT53ksIDWG7GLoPSbtyo51eZ9U5w2O0O5LpjHLeSYar1RQmmUfTEpBtmHQ5FwVolOEDAGwdyASQzDn0NA

Useful Links

Spring Cloud ConfigServer

Introduction

  • Spring Cloud Config is Spring's client/server approach for storing and serving distributed configurations across multiple applications and environments.
ssh-keygen -m PEM -t rsa -b 4096 -f ~/config_server_deploy_key.rsa

jenkinsforme's People

Contributors

ggnanasekaran77 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.