[stable/traefik]: add configurable host ports for deployments (#11692)

* [stable/traefik]: add configurable host ports for deployments

Signed-off-by: Art3mK <artem@kayalaynen.ru>

* [stable/traefik] provide defaults for host ports

Signed-off-by: Art3mK <artem@kayalaynen.ru>
This commit is contained in:
Art3mK
2019-03-04 11:56:15 -08:00
committed by Kubernetes Prow Robot
parent 3d7b96069b
commit 16879ca3db
4 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: traefik
version: 1.62.0
version: 1.62.1
appVersion: 1.7.9
description: A Traefik based Kubernetes ingress controller with Let's Encrypt support
keywords:
+3
View File
@@ -201,8 +201,11 @@ The following table lists the configurable parameters of the Traefik chart and t
| `deployment.podAnnotations` | Annotations for the Traefik pod definition | None |
| `deployment.podLabels` | Labels for the Traefik pod definition | None |
| `deployment.hostPort.httpEnabled` | Whether to enable hostPort binding to host for http. | `false` |
| `deployment.hostPort.httpPort` | Desired host port used for http requests. | `80` |
| `deployment.hostPort.httpsEnabled` | Whether to enable hostPort binding to host for https. | `false` |
| `deployment.hostPort.httpsPort` | Desired host port used for https requests. | `443` |
| `deployment.hostPort.dashboardEnabled` | Whether to enable hostPort binding to host for dashboard. | `false` |
| `deployment.hostPort.dashboardPort` | Desired host port used for accessing dashboard. | `8080` |
| `sendAnonymousUsage` | Send anonymous usage statistics. | `false` |
| `tracing.enabled` | Whether to enable request tracing | `false` |
| `tracing.backend` | Tracing backend to use, either `jaeger` or `zipkin` or `datadog` | None |
+3 -3
View File
@@ -126,7 +126,7 @@ spec:
- name: http
containerPort: 80
{{- if .Values.deployment.hostPort.httpEnabled }}
hostPort: 80
hostPort: {{ default 80 .Values.deployment.hostPort.httpPort }}
{{- end }}
protocol: TCP
- name: httpn
@@ -135,14 +135,14 @@ spec:
- name: https
containerPort: 443
{{- if .Values.deployment.hostPort.httpsEnabled }}
hostPort: 443
hostPort: {{ default 443 .Values.deployment.hostPort.httpsPort }}
{{- end }}
protocol: TCP
{{- if .Values.dashboard.enabled }}
- name: dash
containerPort: 8080
{{- if .Values.deployment.hostPort.dashboardEnabled }}
hostPort: 8080
hostPort: {{ default 8080 .Values.deployment.hostPort.dashboardPort }}
{{- end }}
protocol: TCP
{{- end }}
+3
View File
@@ -370,6 +370,9 @@ deployment:
httpEnabled: false
httpsEnabled: false
dashboardEnabled: false
# httpPort: 80
# httpsPort: 443
# dashboardPort: 8080
sendAnonymousUsage: false
tracing:
enabled: false