Jenkins operator creates, deploys and manages the EDP Jenkins instance, which is equipped with the necessary plugins, on Kubernetes and OpenShift.
There is an ability to customize the Jenkins instance and to check changes during the application creation.
- Machine with kubectl installed with an authorized access to the cluster;
- Admin space is deployed by following the repository instruction: edp-install.
- Go to the releases page of this repository, choose a version, download an archive, and unzip it;
NOTE: It is highly recommended to use the latest released version.
- Go to the unzipped directory and apply all files with the Custom Resource Definitions resource:
for file in $(ls crds/*_crd.yaml); do kubectl apply -f $file; done
- Deploy operator:
kubectl patch -n <edp_cicd_project> -f deploy/operator.yaml --local=true --patch='{"spec":{"template":{"spec":{"containers":[{"image":"epamedp/jenkins-operator:<operator_version>", "name":"jenkins-operator-v2", "env": [{"name":"WATCH_NAMESPACE", "value":"<edp_cicd_project>"}, {"name":"PLATFORM_TYPE","value":"<platform>"}]}]}}}}' -o yaml | kubectl -n <edp_cicd_project> apply -f -
-
<operator_version> - a selected release version;
-
<edp_cicd_project> - a namespace or a project name (in case of OpenSift) that is created by following the edp-install instructions;
-
<platform_type> - a platform type that can be "kubernetes" or "openshift".
- Check the <edp_cicd_project> namespace that should contain Deployment with your operator in a running status.
In order to apply the necessary customization, get acquainted with the following sections: