allow changing of the target port to support TLS termination sidecar (#13576)

* allow changing of the target port to support TLS termination sidecar

Signed-off-by: Shane Starcher <shanestarcher@gmail.com>

* allow changing of the target port to support TLS termination sidecar

Signed-off-by: Shane Starcher <shanestarcher@gmail.com>
This commit is contained in:
Shane Starcher
2019-05-07 11:52:32 -07:00
committed by Kubernetes Prow Robot
parent 2b23dae64b
commit a34d3bbccf
5 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: jenkins
home: https://jenkins.io/
version: 1.1.15
version: 1.1.16
appVersion: lts
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
+1
View File
@@ -86,6 +86,7 @@ The following tables list the configurable parameters of the Jenkins chart and t
| `master.serviceAnnotations` | Service annotations | `{}` |
| `master.serviceType` | k8s service type | `LoadBalancer` |
| `master.servicePort` | k8s service port | `8080` |
| `master.targetPort` | k8s target port | `8080` |
| `master.nodePort` | k8s node port | Not set |
| `master.healthProbes` | Enable k8s liveness and readiness probes | `true` |
| `master.healthProbesLivenessTimeout` | Set the timeout for the liveness probe | `120` |
@@ -17,7 +17,7 @@ spec:
ingress:
# Allow web access to the UI
- ports:
- port: 8080
- port: {{ .Values.master.targetPort }}
# Allow inbound connections from slave
- from:
- podSelector:
@@ -19,7 +19,7 @@ spec:
ports:
- port: {{.Values.master.servicePort}}
name: http
targetPort: 8080
targetPort: {{ .Values.master.targetPort }}
{{if (and (eq .Values.master.serviceType "NodePort") (not (empty .Values.master.nodePort)))}}
nodePort: {{.Values.master.nodePort}}
{{end}}
+1
View File
@@ -77,6 +77,7 @@ master:
# runAsUser: <defaults to 0>
# fsGroup: <will be omitted in deployment if runAsUser is 0>
servicePort: 8080
targetPort: 8080
# For minikube, set this to NodePort, elsewhere use LoadBalancer
# Use ClusterIP if your setup includes ingress controller
serviceType: LoadBalancer