Skip to content

A jenkins-kubernetes-helm deployment using vagrant and nfs dynamic provisioning

License

Notifications You must be signed in to change notification settings

sergiomartins8/jenkins-k8s-nfs-dynamic-provisioner

Repository files navigation

jenkins-kubernetes (ubuntu 18.04)

Pre-requisites

Instructions

First
  1. Install and configure nfs-server (instructions)
  2. Prepare your machine (instructions)
  3. Open /nfs-provisioner/deployment.yaml and change <<NFS Server IP>> to the ip of the machine where the nfs-server is running

The steps above are only required the first time you bootstrap the cluster

Then
  1. Go to /vagrant-provisioning and $ vagrant up
  2. $ mkdir ~/.kube
  3. $ scp root@kmaster.example.com:/etc/kubernetes/admin.conf $HOME/.kube/config using kubeadmin as the password
  4. Setup the dynamic nfs provisioner ($ kubectl create -f nfs-provisioner/)

Deploy jenkins

Dependencies

The following commands will download the required dependencies and store them on charts/

$ cd jenkins-chart/
$ helm dependency update

Upgrade (install) jenkins

Execute the following command on the root of the project

$ helm upgrade --install --namespace jenkins jenkins-chart ./jenkins-chart

Access Jenkins

http://kmaster:32000/login

admin/admin 🚨

Add Kubernetes Service Account credentials

http://kmaster:32000/credentials/store/system/domain/_/newCredentials

Change credentials to the secret text

http://kmaster:32000/configureClouds/

Test Connection and you should see Connection test successful 🎉

Kuddos

kuddos to the open source project by @justmeandopensource that eased the bootstrap process 🙌

About

A jenkins-kubernetes-helm deployment using vagrant and nfs dynamic provisioning

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published