From 25074bdbb82e0b4c31bd64aeb15ad0823f0e80ca Mon Sep 17 00:00:00 2001
From: Sylwia Brant To install, you need only to type these commands: To add custom labels and annotations, you can use You can further customize Jenkins using $ kubectl create -n <your-namespace>$ helm repo add jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart
-$ helm install jenkins/jenkins-operatorvalues.yaml file or pass them into helm install command, e.g.:$ helm install <name> jenkins/jenkins-operator -n <your-namespace> --set jenkins.labels.LabelKey=LabelValue,jenkins.annotations.AnnotationKey=AnnotationValuevalues.yaml:
+Jenkins instance configuration
+
| + | Field | +Default value | +Description | +||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+jenkins
+ |
+
+ operator is section for configuring operator deployment +
|
+||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| + | Field | +Default value | +Description | +||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+ operator
+ |
+
+ operator is section for configuring operator deployment +
|
+ ||||||||||||||||||||||||||||||||
+(Appears on: +JenkinsConfiguration) +
++Backup defines configuration of Jenkins backup. +
+ +| Field | +Default value | +Description | +||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+ enabled
+ |
+ + true + | ++ Enabled is enable/disable switch for backup feature. + | +||||||||||||
+ image
+ |
+ + virtuslab/jenkins-operator-backup-pvc:v0.0.8 + | ++ Image used by backup feature. + | +||||||||||||
+ containerName
+ |
+ + backup + | ++ Backup container name. + | +||||||||||||
+ interval
+ |
+ + 30 + | ++ Defines how often make backup in seconds. + | +||||||||||||
+ makeBackupBeforePodDeletion
+ |
+ + true + | ++ When enabled will make backup before pod deletion. + | +||||||||||||
+ backupCommand
+ |
+ + /home/user/bin/backup.sh + | ++ Backup container command. + | +||||||||||||
+ restoreCommand
+ |
+ + /home/user/bin/restore.sh + | ++ Backup restore command. + | +||||||||||||
+ pvc
+ |
+
+ Persistent Volume Claim Kubernetes resource ++
|
+ |||||||||||||
+ env
+ |
+
++- name: BACKUP_DIR + value: /backup +- name: JENKINS_HOME + value: /jenkins-home +- name: BACKUP_COUNT + value: "3" ++ |
+
+ Contains container environment variables.
+ PVC backup provider handles these variables: + BACKUP_DIR - path for storing backup files (default: "/backup") + JENKINS_HOME - path to jenkins home (default: "/jenkins-home") + BACKUP_COUNT - define how much recent backups will be kept + |
+
+ ||||||||||||
| + volumeMounts + | +
++- name: jenkins-home + mountPath: /jenkins-home +- mountPath: /backup + name: backup ++ |
+ + Holds the mount points for volumes. + | +||||||||||||
+ (Appears on: + Jenkins instance configuration) +
+ +| Field | +Default value | +Description | +
|---|---|---|
+ configurationAsCode
+ |
+ + {} + | +
+ ConfigurationAsCode defines configuration of Jenkins customization via Configuration as Code Jenkins plugin.
+Example: +
+- configMapName: jenkins-casc
+ content: {}
+
+ |
+
+ groovyScripts
+ |
+ + {} + | +
+ GroovyScripts defines configuration of Jenkins customization via groovy scripts.
+ Example: +
+- configMapName: jenkins-gs
+ content: {}
+
+ |
+
+ secretRefName
+ |
+ + “” + | ++ secretRefName of existing secret (previously created). + | +
+ secretData
+ |
+ + {} + | ++ If secretRefName is empty, secretData creates new secret and fills with data provided in secretData. + | +
# See https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/schema/#github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2.Service for details + #service: + # slave Jenkins service + # See https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/schema/#github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2.Service for details + #slaveService:
+| Field | @@ -83,21 +84,18 @@ You can further customize Jenkins using `values.yaml`:Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + |
jenkins
|
-- | -- | -- | +
+ operator is section for configuring operator deployment +
|
+||||||||||||||||||||||||||||||||||||||||||||||||||||
| - | Field | -Default value | -Description | -||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-operator
- |
-
- operator is section for configuring operator deployment -
|
-||||||||||||||||||||||||||||||||
| + | Field | +Default value | +Description | +||||||||||||||||||||||||||||||
+ operator
+ |
+
+ operator is section for configuring operator deployment +
|
+ ||||||||||||||||||||||||||||||||
(Appears on: -JenkinsSpec) +JenkinsConfiguration)
Backup defines configuration of Jenkins backup.
@@ -575,7 +567,7 @@ Backup defines configuration of Jenkins backup.
@@ -584,7 +576,7 @@ Backup defines configuration of Jenkins backup.
Field
-Default value
+Default value
Description
enabled
image
containerName
interval
makeBackupBeforePodDeletion
backupCommand
restoreCommand
- pvc
- enabled
- size
- className
- Persistent Volume Claim Kubernetes resource
+
+ enabled
+ |
+ + true + | ++ Enable/disable switch for PVC + | +
+ enabled
+ |
+ + true + | ++ Enable/disable switch for PVC + | +
+ size
+ |
+ + 5Gi + | ++ Size of PVC + | +
+ className
+ |
+ + "" + | ++ StorageClassName for PVC + More info + | +
env
- name: BACKUP_DIR
value: /backup
@@ -734,7 +734,7 @@ Backup defines configuration of Jenkins backup.
volumeMounts
-
+
- name: jenkins-home
mountPath: /jenkins-home
@@ -749,17 +749,12 @@ Backup defines configuration of Jenkins backup.
(Appears on: - JenkinsSpec) + Jenkins instance configuration)
--Configuration is section where we can configure Jenkins instance -
-