-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins-deploy.yaml
43 lines (43 loc) · 940 Bytes
/
jenkins-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
43
apiVersion: apps/v1
kind: Deployment
metadata:
name: jenkins
namespace: jenkins
labels:
app: jenkins
spec:
replicas: 1
selector:
matchLabels:
app: jenkins
template:
metadata:
labels:
app: jenkins
spec:
serviceAccountName: jenkins
containers:
- name: jenkins
image: bellship24/jenkins-master:1
resources:
limits:
cpu: "2000m"
memory: "16GiB"
env:
- name: JENKINS_ADMIN_ID
value: admin
- name: JENKINS_ADMIN_PASSWORD
value: jenkins123qwe
ports:
- name: http-port
containerPort: 8080
- name: jnlp-port
containerPort: 50000
volumeMounts:
- name: jenkins-home
mountPath: /var/jenkins_home
volumes:
- name: jenkins-home
nfs:
server: <your nfs IP address>
path: <your nfs path>