Make livenessProbe and readinessProbe configurable in Helm chart (#499)
This commit is contained in:
		
							parent
							
								
									9713375a37
								
							
						
					
					
						commit
						73db2e0fc9
					
				|  | @ -86,26 +86,12 @@ spec: | ||||||
|         {{- with .Values.jenkins.imagePullSecrets }} |         {{- with .Values.jenkins.imagePullSecrets }} | ||||||
|         imagePullSecrets: {{ toYaml . | nindent 10 }} |         imagePullSecrets: {{ toYaml . | nindent 10 }} | ||||||
|         {{- end }} |         {{- end }} | ||||||
|         livenessProbe: |         {{- with .Values.jenkins.livenessProbe }} | ||||||
|           failureThreshold: 12 |         livenessProbe: {{ toYaml . | nindent 10 }} | ||||||
|           httpGet: |         {{- end }} | ||||||
|             path: /login |         {{- with .Values.jenkins.readinessProbe }} | ||||||
|             port: http |         readinessProbe: {{ toYaml . | nindent 10 }} | ||||||
|             scheme: HTTP |         {{- end }} | ||||||
|           initialDelaySeconds: 80 |  | ||||||
|           periodSeconds: 10 |  | ||||||
|           successThreshold: 1 |  | ||||||
|           timeoutSeconds: 5 |  | ||||||
|         readinessProbe: |  | ||||||
|           failureThreshold: 3 |  | ||||||
|           httpGet: |  | ||||||
|             path: /login |  | ||||||
|             port: http |  | ||||||
|             scheme: HTTP |  | ||||||
|           initialDelaySeconds: 30 |  | ||||||
|           periodSeconds: 10 |  | ||||||
|           successThreshold: 1 |  | ||||||
|           timeoutSeconds: 1 |  | ||||||
|         {{- with .Values.jenkins.resources }} |         {{- with .Values.jenkins.resources }} | ||||||
|         resources: {{ toYaml . | nindent 10 }} |         resources: {{ toYaml . | nindent 10 }} | ||||||
|         {{- end }} |         {{- end }} | ||||||
|  |  | ||||||
|  | @ -148,6 +148,29 @@ jenkins: | ||||||
|   # See https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/schema/#github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2.Service for details |   # 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: |   #slaveService: | ||||||
|    |    | ||||||
|  |   # LivenessProbe for Jenkins Master pod | ||||||
|  |   livenessProbe: | ||||||
|  |     failureThreshold: 12 | ||||||
|  |     httpGet: | ||||||
|  |       path: /login | ||||||
|  |       port: http | ||||||
|  |       scheme: HTTP | ||||||
|  |     initialDelaySeconds: 80 | ||||||
|  |     periodSeconds: 10 | ||||||
|  |     successThreshold: 1 | ||||||
|  |     timeoutSeconds: 5 | ||||||
|  |   # ReadinessProbe for Jenkins Master pod | ||||||
|  |   readinessProbe: | ||||||
|  |     failureThreshold: 3 | ||||||
|  |     httpGet: | ||||||
|  |       path: /login | ||||||
|  |       port: http | ||||||
|  |       scheme: HTTP | ||||||
|  |     initialDelaySeconds: 30 | ||||||
|  |     periodSeconds: 10 | ||||||
|  |     successThreshold: 1 | ||||||
|  |     timeoutSeconds: 1 | ||||||
|  | 
 | ||||||
|   # backup is section for configuring operator's backup feature |   # backup is section for configuring operator's backup feature | ||||||
|   # By default backup feature is enabled and pre-configured |   # By default backup feature is enabled and pre-configured | ||||||
|   # This section simplifies the configuration described here: https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/configure-backup-and-restore/ |   # This section simplifies the configuration described here: https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/configure-backup-and-restore/ | ||||||
|  |  | ||||||
|  | @ -385,6 +385,50 @@ SecurityContext for pod. | ||||||
| </tr> | </tr> | ||||||
| <tr> | <tr> | ||||||
| <td> | <td> | ||||||
|  | <code>livenessProbe</code> | ||||||
|  | </td> | ||||||
|  | <td> | ||||||
|  | <pre> | ||||||
|  | livenessProbe: | ||||||
|  |   failureThreshold: 12 | ||||||
|  |   httpGet: | ||||||
|  |     path: /login | ||||||
|  |     port: http | ||||||
|  |     scheme: HTTP | ||||||
|  |   initialDelaySeconds: 80 | ||||||
|  |   periodSeconds: 10 | ||||||
|  |   successThreshold: 1 | ||||||
|  |   timeoutSeconds: 5 | ||||||
|  | </pre> | ||||||
|  | </td> | ||||||
|  | <td> | ||||||
|  | livenessProbe for Pod | ||||||
|  | </td> | ||||||
|  | </tr> | ||||||
|  | <tr> | ||||||
|  | <td> | ||||||
|  | <code>readinessProbe</code> | ||||||
|  | </td> | ||||||
|  | <td> | ||||||
|  | <pre> | ||||||
|  | readinessProbe: | ||||||
|  |   failureThreshold: 3 | ||||||
|  |   httpGet: | ||||||
|  |     path: /login | ||||||
|  |     port: http | ||||||
|  |     scheme: HTTP | ||||||
|  |   initialDelaySeconds: 30 | ||||||
|  |   periodSeconds: 10 | ||||||
|  |   successThreshold: 1 | ||||||
|  |   timeoutSeconds: 1 | ||||||
|  | </pre> | ||||||
|  | </td> | ||||||
|  | <td> | ||||||
|  | readinessProbe for Pod | ||||||
|  | </td> | ||||||
|  | </tr> | ||||||
|  | <tr> | ||||||
|  | <td> | ||||||
| <code> | <code> | ||||||
| backup | backup | ||||||
| </code> | </code> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue