2017-03-07 01:10:31 +00:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: jenkins-master
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
name: jenkins-master
|
|
|
|
labels:
|
|
|
|
app: jenkins-master
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: jenkins
|
2017-07-26 17:57:06 +00:00
|
|
|
image: gcr.io/oss-fuzz-base/jenkins:20170726v4
|
2017-03-07 01:10:31 +00:00
|
|
|
env:
|
|
|
|
- name: JAVA_OPTS
|
2017-07-26 17:57:06 +00:00
|
|
|
value: "-Duser.timezone=America/Los_Angeles -Dhudson.security.csrf.requestfield=Jenkins-Crumb -Xmx16g -Djenkins.security.ApiTokenProperty.showTokenToAdmins=true"
|
2017-03-07 01:10:31 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
- containerPort: 50000
|
|
|
|
volumeMounts:
|
|
|
|
- name: jenkins-home
|
|
|
|
mountPath: "/var/jenkins_home"
|
2017-03-10 22:33:15 +00:00
|
|
|
- name: secrets
|
|
|
|
mountPath: "/var/secrets"
|
|
|
|
readOnly: true
|
2017-03-07 01:10:31 +00:00
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: "/login"
|
|
|
|
port: 8080
|
|
|
|
initialDelaySeconds: 60
|
|
|
|
timeoutSeconds: 15
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: "4Gi"
|
|
|
|
cpu: "4"
|
|
|
|
- name: kubectl-proxy
|
|
|
|
image: lachlanevenson/k8s-kubectl
|
|
|
|
args:
|
|
|
|
- "proxy"
|
|
|
|
- "-p"
|
|
|
|
- "8081"
|
|
|
|
volumes:
|
|
|
|
- name: jenkins-home
|
|
|
|
gcePersistentDisk:
|
|
|
|
pdName: jenkins-home
|
|
|
|
fsType: ext4
|
2017-03-10 22:33:15 +00:00
|
|
|
- name: secrets
|
|
|
|
secret:
|
2017-03-27 18:27:20 +00:00
|
|
|
secretName: secrets
|
2017-03-10 22:33:15 +00:00
|
|
|
items:
|
|
|
|
- key: build-service-account.json
|
|
|
|
path: build-service-account.json
|
2017-03-22 18:33:51 +00:00
|
|
|
- key: base-build-service-account.json
|
|
|
|
path: base-build-service-account.json
|
2017-03-27 18:27:20 +00:00
|
|
|
- key: tls-cert
|
|
|
|
path: cert.pem
|
|
|
|
- key: tls-key
|
|
|
|
path: cert.key
|