Move Jenkins container properties to spec.master.containers list

This commit is contained in:
Tomasz Sęk
2019-06-11 19:53:02 +02:00
parent e1aba3ed9f
commit 25469b1174
11 changed files with 177 additions and 135 deletions
+31 -20
View File
@@ -4,26 +4,37 @@ metadata:
name: example
spec:
master:
readinessProbe:
httpGet:
path: /login
port: 8080
scheme: HTTP
failureThreshold: 10
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /login
port: 8080
scheme: HTTP
initialDelaySeconds: 35
failureThreshold: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
containers:
- name: jenkins-master
image: jenkins/jenkins:lts
imagePullPolicy: Always
livenessProbe:
failureThreshold: 12
httpGet:
path: /login
port: http
scheme: HTTP
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
resources:
limits:
cpu: 1500m
memory: 3Gi
requests:
cpu: "1"
memory: 600Mi
seedJobs:
- id: jenkins-operator
targets: "cicd/jobs/*.jenkins"