Skip to content

Commit

Permalink
[stable/traefik] Add ability to enable hostPort setup (helm#3129)
Browse files Browse the repository at this point in the history
* Add ability to enable hostPort setup

* Bump chart version to 1.15.0
  • Loading branch information
aslafy-z authored and k8s-ci-robot committed Jan 4, 2018
1 parent fe2b232 commit 0d17ecc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/traefik/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
3 changes: 3 additions & 0 deletions stable/traefik/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
9 changes: 9 additions & 0 deletions stable/traefik/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions stable/traefik/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,8 @@ metrics:
enabled: false
# address: "localhost:8125"
# pushInterval: 30s
deployment:
hostPort:
httpEnabled: false
httpsEnabled: false
dashboardEnabled: false

0 comments on commit 0d17ecc

Please sign in to comment.