[stable/jenkins] Allow more configuration of Jenkins agent service (#4028)

* Allow configuring Jenkins slave service type

* Allow configuring Jenkins slave service annotations

* Update Chart.yaml
This commit is contained in:
Tristan Pemble
2018-03-08 09:28:55 -08:00
committed by k8s-ci-robot
parent 3ac741bdfd
commit fc82f39b29
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: jenkins
home: https://jenkins.io/
version: 0.14.0
version: 0.14.1
appVersion: 2.73
description: Open source continuous integration server. It supports multiple SCM tools
including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based
@@ -6,6 +6,10 @@ metadata:
app: {{ template "jenkins.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
component: "{{ .Release.Name }}-{{ .Values.Master.Component }}"
{{- if .Values.Master.SlaveListenerServiceAnnotations }}
annotations:
{{ toYaml .Values.Master.SlaveListenerServiceAnnotations | indent 4 }}
{{- end }}
spec:
ports:
- port: {{ .Values.Master.SlaveListenerPort }}
@@ -13,4 +17,4 @@ spec:
name: slavelistener
selector:
component: "{{ .Release.Name }}-{{ .Values.Master.Component }}"
type: ClusterIP
type: {{ .Values.Master.SlaveListenerServiceType }}
+4
View File
@@ -43,6 +43,10 @@ Master:
HealthProbes: true
HealthProbesTimeout: 60
SlaveListenerPort: 50000
# Kubernetes service type for the JNLP slave service
# SETTING THIS TO "LoadBalancer" IS A HUGE SECURITY RISK: https://github.com/kubernetes/charts/issues/1341
SlaveListenerServiceType: ClusterIP
SlaveListenerServiceAnnotations: {}
LoadBalancerSourceRanges:
- 0.0.0.0/0
# Optionally assign a known public LB IP