aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/jenkins-cluster
diff options
context:
space:
mode:
Diffstat (limited to 'infra/jenkins-cluster')
-rw-r--r--infra/jenkins-cluster/deployment-jenkins.yaml60
-rw-r--r--infra/jenkins-cluster/ingress-jenkins-https.yaml10
-rw-r--r--infra/jenkins-cluster/server/Dockerfile19
-rw-r--r--infra/jenkins-cluster/service-jenkins-master.yaml16
4 files changed, 0 insertions, 105 deletions
diff --git a/infra/jenkins-cluster/deployment-jenkins.yaml b/infra/jenkins-cluster/deployment-jenkins.yaml
deleted file mode 100644
index 6ff526d8..00000000
--- a/infra/jenkins-cluster/deployment-jenkins.yaml
+++ /dev/null
@@ -1,60 +0,0 @@
-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
- image: gcr.io/oss-fuzz-base/jenkins:20170726v4
- env:
- - name: JAVA_OPTS
- value: "-Duser.timezone=America/Los_Angeles -Dhudson.security.csrf.requestfield=Jenkins-Crumb -Xmx16g -Djenkins.security.ApiTokenProperty.showTokenToAdmins=true"
- ports:
- - containerPort: 8080
- - containerPort: 50000
- volumeMounts:
- - name: jenkins-home
- mountPath: "/var/jenkins_home"
- - name: secrets
- mountPath: "/var/secrets"
- readOnly: true
- 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
- - name: secrets
- secret:
- secretName: secrets
- items:
- - key: build-service-account.json
- path: build-service-account.json
- - key: base-build-service-account.json
- path: base-build-service-account.json
- - key: tls-cert
- path: cert.pem
- - key: tls-key
- path: cert.key
diff --git a/infra/jenkins-cluster/ingress-jenkins-https.yaml b/infra/jenkins-cluster/ingress-jenkins-https.yaml
deleted file mode 100644
index 396a9b6f..00000000
--- a/infra/jenkins-cluster/ingress-jenkins-https.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-apiVersion: extensions/v1beta1
-kind: Ingress
-metadata:
- name: jenkins-https-ingress
-spec:
- backend:
- serviceName: jenkins-master
- servicePort: 8080
- tls:
- - secretName: tls
diff --git a/infra/jenkins-cluster/server/Dockerfile b/infra/jenkins-cluster/server/Dockerfile
deleted file mode 100644
index c164a0c9..00000000
--- a/infra/jenkins-cluster/server/Dockerfile
+++ /dev/null
@@ -1,19 +0,0 @@
-FROM jenkins/jenkins:lts
-USER root
-
-RUN mkdir /var/secrets
-RUN apt-get -y update && apt-get -y upgrade && apt-get -y install python-dev virtualenv python-pip build-essential
-
-WORKDIR /
-RUN wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip
-RUN unzip google-cloud-sdk.zip
-
-RUN /google-cloud-sdk/install.sh --usage-reporting=false --bash-completion=false --disable-installation-options
-RUN /google-cloud-sdk/bin/gcloud -q components install alpha beta
-RUN /google-cloud-sdk/bin/gcloud -q components update
-
-RUN chown -R jenkins:jenkins /google-cloud-sdk
-
-USER jenkins
-ENV JENKINS_OPTS --httpPort=8080 --httpsPort=8082 --httpsCertificate=/var/secrets/cert.pem --httpsPrivateKey=/var/secrets/cert.key
-ENV PATH=$PATH:/google-cloud-sdk/bin
diff --git a/infra/jenkins-cluster/service-jenkins-master.yaml b/infra/jenkins-cluster/service-jenkins-master.yaml
deleted file mode 100644
index f68dc2ce..00000000
--- a/infra/jenkins-cluster/service-jenkins-master.yaml
+++ /dev/null
@@ -1,16 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
- name: jenkins-master
- labels:
- app: jenkins-master
-spec:
- type: NodePort
- selector:
- app: jenkins-master
- ports:
- - name: agent
- port: 50000
- - name: http
- port: 8080
- targetPort: 8080