mirror of https://github.com/google/oss-fuzz.git
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: jenkins
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
name: jenkins-master
|
|
labels:
|
|
app: jenkins-master
|
|
spec:
|
|
containers:
|
|
- name: jenkins
|
|
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-home
|
|
mountPath: "/var/jenkins_home"
|
|
- name: docker-sock
|
|
mountPath: "/var/run/docker.sock"
|
|
# - name: dockerhub-login-secret
|
|
# mountPath: "/var/secrets/dockerhub-login"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: "/login"
|
|
port: 8080
|
|
initialDelaySeconds: 60
|
|
timeoutSeconds: 15
|
|
resources:
|
|
requests:
|
|
memory: "4Gi"
|
|
securityContext:
|
|
privileged: true
|
|
volumes:
|
|
- name: jenkins-home
|
|
gcePersistentDisk:
|
|
pdName: oss-cluster-jenkins-work
|
|
fsType: ext4
|
|
- name: docker-sock
|
|
hostPath:
|
|
path: /var/run/docker.sock
|
|
# - name: dockerhub-login-secret
|
|
# secret:
|
|
# secretName: dockerhub-login
|