[stable/traefik] Add ability to enable hostPort setup (#3129)

* Add ability to enable hostPort setup

* Bump chart version to 1.15.0
This commit is contained in:
Zadkiel
2018-01-04 08:51:19 -08:00
committed by k8s-ci-robot
parent fe2b232f0b
commit 0d17ecccfd
4 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: traefik
version: 1.14.5
version: 1.15.0
appVersion: 1.4.5
description: A Traefik based Kubernetes ingress controller with Let's Encrypt support
keywords:
+3
View File
@@ -134,6 +134,9 @@ The following tables lists the configurable parameters of the Traefik chart and
| `metrics.statsd.enabled` | Whether to enable pushing metrics to Statsd. | `false` |
| `metrics.statsd.address` | Statsd host in the format <hostname>:<port> | `localhost:8125` |
| `metrics.statsd.pushInterval` | How often to push metrics to Statsd. | `10s` |
| `deployment.hostPort.httpEnabled` | Whether to enable hostPort binding to host for http. | `false` |
| `deployment.hostPort.httpsEnabled` | Whether to enable hostPort binding to host for https. | `false` |
| `deployment.hostPort.dashboardEnabled` | Whether to enable hostPort binding to host for dashboard. | `false` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example:
+9
View File
@@ -74,16 +74,25 @@ spec:
ports:
- name: http
containerPort: 80
{{- if .Values.deployment.hostPort.httpEnabled }}
hostPort: 80
{{- end }}
protocol: TCP
- name: httpn
containerPort: 8880
protocol: TCP
- name: https
containerPort: 443
{{- if .Values.deployment.hostPort.httpsEnabled }}
hostPort: 443
{{- end }}
protocol: TCP
{{- if .Values.dashboard.enabled }}
- name: dash
containerPort: 8080
{{- if .Values.deployment.hostPort.dashboardEnabled }}
hostPort: 8080
{{- end }}
protocol: TCP
{{- end }}
args:
+5
View File
@@ -100,3 +100,8 @@ metrics:
enabled: false
# address: "localhost:8125"
# pushInterval: 30s
deployment:
hostPort:
httpEnabled: false
httpsEnabled: false
dashboardEnabled: false