diff --git a/stable/traefik/Chart.yaml b/stable/traefik/Chart.yaml index 7311f66fb5..77b47387fc 100755 --- a/stable/traefik/Chart.yaml +++ b/stable/traefik/Chart.yaml @@ -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: diff --git a/stable/traefik/README.md b/stable/traefik/README.md index cf414b6641..d9fb700232 100644 --- a/stable/traefik/README.md +++ b/stable/traefik/README.md @@ -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 : | `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: diff --git a/stable/traefik/templates/deployment.yaml b/stable/traefik/templates/deployment.yaml index c62c2a6bf8..030bb4918e 100644 --- a/stable/traefik/templates/deployment.yaml +++ b/stable/traefik/templates/deployment.yaml @@ -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: diff --git a/stable/traefik/values.yaml b/stable/traefik/values.yaml index 7b236a64e7..c806e331ab 100644 --- a/stable/traefik/values.yaml +++ b/stable/traefik/values.yaml @@ -100,3 +100,8 @@ metrics: enabled: false # address: "localhost:8125" # pushInterval: 30s +deployment: + hostPort: + httpEnabled: false + httpsEnabled: false + dashboardEnabled: false