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

62 lines
1.5 KiB
YAML
Raw Normal View History

kind: ReplicationController
apiVersion: v1
2016-07-20 21:58:10 +00:00
metadata:
name: jenkins-master
spec:
replicas: 1
selector:
app: jenkins-master
2016-07-20 21:58:10 +00:00
template:
metadata:
name: jenkins-master
2016-07-20 21:58:10 +00:00
labels:
app: jenkins-master
spec:
containers:
- name: jenkins-master
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:
- name: jenkins-work
mountPath: "/var/jenkins_home"
- name: docker-sock
mountPath: "/var/run/docker.sock"
2016-07-21 00:09:09 +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:
- name: jenkins-work
gcePersistentDisk:
pdName: jenkins-work
fsType: ext4
- name: docker-sock
hostPath:
path: /var/run/docker.sock
2016-07-21 00:09:09 +00:00
- name: dockerhub-login-secret
secret:
secretName: dockerhub-login