Skip to content

olblak/charts

 
 

Repository files navigation

Jenkins Infrastructure Helm Charts

This repository defines and stores helm charts used by jenkins infrastructure project to configure its clusters.

It combines a Jenkinsfile, helmfiles and helm charts to automate Kubernetes Cluster configuration.

Contributing

The Jenkins Infratructure Charts project accepts contributions via GitHub pull requests, more information in CONTRIBUTING.md Sign Your Work

Issues

Any issues can be reported on our ticket system

Repository Structure

This project contains the following main directories:

  • clusters: This folder contains the per-cluster helmfile listing, e.g the list of helmfiles to apply per cluster
  • helmfile.d: This folder contains the Helmfile definitions
  • charts: This folder contains specific jenkins infrastructure helm charts
  • config: This folder contains the specific configuration for our environments

Secrets

Secrets are encrypted with sops and a default configuration is defined in .sops.yaml Currently there are two kinds of encryption keys: a GPG key and an Azure Key-Vault (accessible from Kubernetes clusters).

All secrets are expected to be found in the ./secrets folder which is absent (gitignored) by default.

If you can access the secrets, you have to set up the local ./secrets folder from the (private) repository jenkins-infra/charts-secrets with the following command:

git clone https://github.com/jenkins-infra/charts-secrets.git ./secrets

Then, you can edit a secret by using the sops ./secrets/.../<your yaml file> command.

Docker

This folder defines a custom Dockerfile in order to build a custom image to orchestrate our clusters

Remarks

  • We need one jenkins instance per cluster so we should split cluster orchestration tasks outside release.ci.jenkins.io

  • If RBAC is enabled on the cluster, before being able to use helm, we need to create a service acccount for helm with the right cluster role binding. we can run following command: kubectl apply -f helm/rbac.yaml

Minikube

minikube start --kubernetes-version v1.15.11
minikube addons enable ingress
helm install stable/nginx-ingress nginx-ingress, we can't install the ingress defined in this repository for testing servers
kubectl -n release port-forward default-release-jenkins-77fd54976f-ns2c6 8081:8080

kubectl get secrets -n release  default-release-jenkins -o json

Links

About

Jenkins Infrastructure Helm Charts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • Smarty 58.0%
  • Mustache 41.2%
  • Makefile 0.8%