-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy.yaml
42 lines (42 loc) · 967 Bytes
/
deploy.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
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/test/jenkins:v3
ports:
- containerPort: 8080
- containerPort: 50000
env:
- name: JENKINS_OPTS
valueFrom:
secretKeyRef:
name: jenkins
key: options
volumeMounts:
- mountPath: /var/jenkins_home
name: jenkins-home
- mountPath: /var/run/docker.sock
name: docker-socket
readOnly: false
resources:
requests:
cpu: 500m
memory: 1500Mi
volumes:
- name: docker-socket
hostPath:
path: "/var/run/docker.sock"
- name: jenkins-home
gcePersistentDisk:
pdName: jenkins-files
fsType: ext4