Skip to content

Commit

Permalink
Merge pull request #55 from DamianSzymanski/master
Browse files Browse the repository at this point in the history
Add service.externalTrafficPolicy
  • Loading branch information
rimusz authored Aug 22, 2019
2 parents 5be865e + 7d384ee commit 59c3282
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/contour/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: contour
description: A Helm chart for Heptio Contour
version: 0.3.0
version: 0.3.1
# Note that we use appVersion to get images tag, so make sure this is correct.
appVersion: v0.12.0
source: https://github.com/rimusz/charts/blob/master/stable/contour
Expand Down
1 change: 1 addition & 0 deletions stable/contour/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ The following table lists the configurable parameters of the `Contour` chart and
| `service.type` | Service type | `LoadBalancer` |
| `service.loadBalancerIP` | Loadbalancer IP | `` |
| `service.annotations` | Service annotations | `{}` |
| `service.externalTrafficPolicy` | externalTrafficPolicy | `Cluster` |
| `ingressRoutes.enabled` | If true, Enable ingressRoutes CRD will be created | `false` |
| `resources` | Set Compute resources | `{}` |
| `rbac.enabled` | Specifies whether RBAC resources should be created | `true` |
Expand Down
3 changes: 3 additions & 0 deletions stable/contour/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: "{{ .Values.service.externalTrafficPolicy }}"
{{- end }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: "{{ .Values.service.loadBalancerIP }}"
{{- end }}
Expand Down
6 changes: 6 additions & 0 deletions stable/contour/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ service:
# for information about enabling the PROXY protocol on the ELB to recover
# the original remote IP address.
# service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
# Due to the implementation of this feature, the source IP seen in the
# target container is not the original source IP of the client. To enable
# preservation of the client IP, the following fields can be configured in the
# service spec (supported in GCE/Google Kubernetes Engine environments)
# There are two available options: Cluster (default) and Local
# externalTrafficPolicy: "Cluster"

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit 59c3282

Please sign in to comment.