-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdeployment.yaml
43 lines (43 loc) · 980 Bytes
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jenkins
namespace: jenkins
spec:
replicas: 1
template:
metadata:
labels:
app: master
spec:
containers:
- name: master
image: gcr.io/GCP_PROJECT/jenkins-master:VERSION
ports:
- containerPort: 8080
- containerPort: 50000
readinessProbe:
httpGet:
path: /login
port: 8080
periodSeconds: 30
timeoutSeconds: 30
successThreshold: 2
failureThreshold: 5
volumeMounts:
- mountPath: /var/jenkins_home
name: jenkins-home
resources:
limits:
cpu: 1000m
memory: 1500Mi
requests:
cpu: 1000m
memory: 1500Mi
securityContext:
fsGroup: 1000
volumes:
- name: jenkins-home
gcePersistentDisk:
pdName: jenkins-home
fsType: ext4