This commit is contained in:
Oliver Chang 2017-03-27 11:27:20 -07:00
parent 2d5e2ef84f
commit d9c93a9137
4 changed files with 12 additions and 6 deletions

View File

@ -15,7 +15,7 @@ spec:
image: gcr.io/clusterfuzz-external/jenkins:latest
env:
- name: JAVA_OPTS
value: "-Duser.timezone=America/Los_Angeles -Dhudson.security.csrf.requestfield=Jenkins-Crumb"
value: "-Duser.timezone=America/Los_Angeles -Dhudson.security.csrf.requestfield=Jenkins-Crumb -Xmx16g"
ports:
- containerPort: 8080
- containerPort: 50000
@ -48,9 +48,13 @@ spec:
fsType: ext4
- name: secrets
secret:
secretName: builder-service-account
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

View File

@ -16,4 +16,5 @@ RUN /google-cloud-sdk/bin/gcloud -q components update
RUN chown -R jenkins:jenkins /google-cloud-sdk
USER jenkins
ENV JENKINS_OPTS --httpPort=-1 --httpsPort=8080 --httpsCertificate=/var/secrets/cert.pem --httpsPrivateKey=/var/secrets/cert.key
ENV PATH=$PATH:/google-cloud-sdk/bin

View File

@ -1,11 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: jenkins-http
name: jenkins-https
spec:
type: LoadBalancer
selector:
app: jenkins-master
ports:
- port: 80
- port: 443
targetPort: 8080
name: https

View File

@ -10,6 +10,6 @@ spec:
ports:
- name: agent
port: 50000
- name: http
port: 80
- name: https
port: 443
targetPort: 8080