Installation
This document describes installation procedure of self-hosted Operator Service for Jenkins®.
Installation of a self-hosted Operator Service for Jenkins® happens with Helm Chart.
When purchasing the Operator Service for Jenkins, client is given a personalized token with a password and name of the registry to access the Operator’s image.
First create namespaces of choice to deploy Operator and Jenkins in.
$ kubectl create ns <operator-namespace>
$ kubectl create ns <jenkins-namespace>
Second create a secret for downloading the Enterprise image by exchanging the placeholders in the below code:
$ kubectl create secret docker-registry license-secret \
--namespace <operator-namespace> \
--docker-server=<registry-name> \
--docker-username=<token-name> \
--docker-password=<password>
This secret must reside in the same namespace as Operator and be named image-secret in order to fetch the image.
Third create a secret with the license information.
apiVersion: v1
kind: Secret
metadata:
name: <custom-name>
stringData:
clientName: "<your-name>"
licenseKey: "<your-license-key>"
By default the Operator will look for a secret named “license”, but you can use custom name by specifying it in the flag in the Operator command:
-license-secret=<custom-name>
Next, prepare your custom values.yaml file where you specify all desired the configurations both for the Operator and all the available Custom Resources. Don’t forget to exchange the jenkins namespace with the one you have just created. You can copy and customize the default file:
Deploy Operator Service for Jenkins® in the first one running Helm command:
$ helm install operator-service insert-here-chart-repo -n <operator-namespace>
At that moment, the Operator and Jenkins pods will start to appear. You can watch over the process by running:
$ kubectl get po --all-namespaces -w
Operator will keep on printing logs about reaching consecutive phases and announce itself Ready. Then you can start to use it freely.
To connect to the UI you can use:
$ kubectl -n <jenkins-namespace> port-forward <jenkins-pod> 8080:8080
At http://localhost:8080 (or with customized suffix) you will find the Jenkins UI.
For further information about customization and configuration of Jenkins please refer to the Getting Started section.