oss-fuzz/infra/jenkins-cluster/jenkins.yaml

59 lines
1.5 KiB
YAML
Raw Normal View History

2016-10-10 19:11:00 +00:00
apiVersion: extensions/v1beta1
kind: Deployment
2016-07-20 21:58:10 +00:00
metadata:
2016-10-10 19:11:00 +00:00
name: jenkins
2016-07-20 21:58:10 +00:00
spec:
replicas: 1
template:
metadata:
name: jenkins-master
2016-07-20 21:58:10 +00:00
labels:
app: jenkins-master
spec:
containers:
2016-10-10 19:11:00 +00:00
- name: jenkins
2016-07-20 21:58:10 +00:00
image: gcr.io/meta-iterator-105109/jenkins
env:
- name: KUB_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: KUB_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: JAVA_OPTS
value: "-Duser.timezone=America/Los_Angeles"
ports:
- containerPort: 8080
- containerPort: 50000
volumeMounts:
2016-10-10 19:11:00 +00:00
- name: jenkins-home
2016-07-20 21:58:10 +00:00
mountPath: "/var/jenkins_home"
- name: docker-sock
mountPath: "/var/run/docker.sock"
2016-10-10 19:11:00 +00:00
# - name: dockerhub-login-secret
# mountPath: "/var/secrets/dockerhub-login"
2016-07-20 21:58:10 +00:00
livenessProbe:
httpGet:
path: "/login"
port: 8080
initialDelaySeconds: 60
timeoutSeconds: 15
resources:
requests:
memory: "4Gi"
securityContext:
privileged: true
volumes:
2016-10-10 19:11:00 +00:00
- name: jenkins-home
gcePersistentDisk:
2016-10-10 19:11:00 +00:00
pdName: oss-cluster-jenkins-work
fsType: ext4
- name: docker-sock
hostPath:
path: /var/run/docker.sock
2016-10-10 19:11:00 +00:00
# - name: dockerhub-login-secret
# secret:
# secretName: dockerhub-login