Awesome Open Source
Awesome Open Source

jenkins-stack-kubernetes

Visits Badge GitHub license GitHub stars Twitter Follow LinkedIn Follow

Stargaze GitHub Repo stars if you find it useful.

Scripts and manifests to deploy Jenkins containers CI/CD stack on Kubernetes.

The Docker-compose version is also available.

Copyright 2021 Saeid Bostandoust [email protected]

This stack contains:

  • Jenkins (with a complete set of tools and plugins).
  • Docker (on Kubernetes for building images and running Jenkins jobs).
  • Docker registry (as a image repository).
  • Gitea (as a version control system).

Installed tools and plugins:

  • Installed tools in Jenkins:
    1. Git client (latest)
    2. Docker client (20.10.9, latest)
    3. Kubernetes client (1.22.2, latest)
    4. Ansible (4.6.0, latest) + A complete set of useful collections
    5. Helm (3.7.0, latest)
    6. Terraform (1.0.8, latest)
  • Jenkins plugins:
    1. 42 most useful Jenkins plugins
  • Ansible collections:
    1. 13 most useful Ansible collections

How to deploy the stack:

The stack is tested on Kubernetes 1.20+, should works on earlier versions.

Prerequisites:

  1. Kubernetes should supports LoadBalancer service type.
  2. Kubernetes should be configured to creating PVC dynamically.
  3. OpenSSL to creating self-signed certificates.

Get started:

./deploy

demo

How to contribute:

Don't hesitate! all contributions are welcomed.

TODO:

  • [x] Update tools to the latest stable version
  • [ ] SSL/TLS for Jenkins
  • [ ] SSL/TLS for Gitea
  • [ ] Expose Jenkins behind Ingress object
  • [ ] Expose Docker registry behind Ingress object
  • [ ] Expose Gitea behind Ingress object

Changelog:

October 13, 2021:
  1. Jenkins updated to the latest LTS version.
  2. All tools updated to the latest stable version.
  3. Some new Jenkins plugins installed, See Dockerfile.
  4. Several new Ansible collections were installed.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Shell (229,298
Hacktoberfest (37,971
Docker (34,505
Kubernetes (11,902
Git (7,659
Ansible (6,973
Terraform (5,215
Devops (4,013
Jenkins (1,894
Helm (1,628
Registry (555
Gitea (141
Related Projects