Skip to content

Commit

Permalink
expose hostnetwork option
Browse files Browse the repository at this point in the history
  • Loading branch information
rbtr committed Mar 12, 2020
1 parent 0e107da commit 55798d1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion traefik/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: traefik
version: 5.4.0
version: 5.5.0
appVersion: 2.1.3
description: A Traefik based Kubernetes ingress controller
keywords:
Expand Down
1 change: 1 addition & 0 deletions traefik/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ spec:
spec:
serviceAccountName: {{ template "traefik.fullname" . }}
terminationGracePeriodSeconds: 60
hostNetwork: {{ .Values.hostNetwork }}
containers:
- image: {{ .Values.image.name }}:{{ .Values.image.tag }}
name: {{ template "traefik.fullname" . }}
Expand Down
18 changes: 18 additions & 0 deletions traefik/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ persistence:
path: /data
annotations: {}

# If hostNetwork is true, runs traefik in the host network namespace
# To prevent unschedulabel pods due to port collisions, if hostNetwork=true
# and replicas>1, a pod anti-affinity is recommended and will be set if the
# affinity is left as default.
hostNetwork: false

resources: {}
# requests:
# cpu: "100m"
Expand All @@ -131,5 +137,17 @@ resources: {}
# cpu: "300m"
# memory: "150Mi"
affinity: {}
# # This example pod anti-affinity forces the scheduler to put traefik pods
# # on nodes where no other traefik pods are scheduled.
# # It should be used when hostNetwork: true to prevent port conflicts
# podAntiAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# - labelSelector:
# matchExpressions:
# - key: app
# operator: In
# values:
# - {{ template "traefik.name" . }}
# topologyKey: failure-domain.beta.kubernetes.io/zone
nodeSelector: {}
tolerations: []

0 comments on commit 55798d1

Please sign in to comment.