48 lines
1.1 KiB
Markdown
48 lines
1.1 KiB
Markdown
# Installation
|
|
|
|
This document describes installation procedure for **jenkins-operator**.
|
|
All container images can be found at [virtuslab/jenkins-operator](https://hub.docker.com/r/virtuslab/jenkins-operator)
|
|
|
|
## Requirements
|
|
|
|
To run **jenkins-operator**, you will need:
|
|
- running Kubernetes cluster
|
|
- kubectl
|
|
|
|
## Configure Custom Resource Definition
|
|
|
|
Install Jenkins Custom Resource Definition:
|
|
|
|
```bash
|
|
kubectl apply -f deploy/crds/virtuslab_v1alpha1_jenkins_crd.yaml
|
|
```
|
|
|
|
## Deploy jenkins-operator
|
|
|
|
apply Service Account and RBAC roles:
|
|
|
|
```bash
|
|
kubectl apply -f deploy/service_account.yaml
|
|
kubectl apply -f deploy/role.yaml
|
|
kubectl apply -f deploy/role_binding.yaml
|
|
```
|
|
|
|
Update container image to **virtuslab/jenkins-operator:<version>** in `deploy/operator.yaml` and deploy **jenkins-operator**:
|
|
|
|
```bash
|
|
sed -i 's|REPLACE_IMAGE|virtuslab/jenkins-operator:latest|g' deploy/operator.yaml
|
|
sed -i 's|REPLACE_ARGS||g' deploy/operator.yaml
|
|
kubectl apply -f deploy/operator.yaml
|
|
```
|
|
|
|
Watch **jenkins-operator** instance being created:
|
|
|
|
```bash
|
|
kubectl get pods -w
|
|
```
|
|
|
|
Now **jenkins-operator** should be up and running in `default` namespace.
|
|
|
|
|
|
|