Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k3s + traefik, how to custom define externalTrafficPolicy = Local #10875

Closed
bxter opened this issue Sep 11, 2024 · 2 comments
Closed

k3s + traefik, how to custom define externalTrafficPolicy = Local #10875

bxter opened this issue Sep 11, 2024 · 2 comments

Comments

@bxter
Copy link

bxter commented Sep 11, 2024

in the document, I found the custom define method
image

I want change the externalTrafficPolicy using follow

apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: traefik
  namespace: kube-system
spec:
  valuesContent: |-
    service:
      externalTrafficPolicy: Local
    ports:
      web:
        proxyProtocol:
          trustedIPs:
            - "0.0.0.0/0"

But this is uneffected, how can it work, thanks

@brandond
Copy link
Contributor

brandond commented Sep 11, 2024

It does not appear that the traefik helm chart supports this:
https://github.com/traefik/traefik-helm-chart/blob/v25.0.0/traefik/templates/_service.tpl

Feel free to open an issue at https://github.com/traefik/traefik-helm-chart/

edit

I take that back, it looks like you should be able do that via service.spec:
https://github.com/traefik/traefik-helm-chart/blob/v25.0.0/traefik/templates/_service.tpl#L15

spec:
  valuesContent: |-
    service:
      spec:
        externalTrafficPolicy: Local

@Smartich0ke
Copy link

Smartich0ke commented Sep 21, 2024

It does not appear that the traefik helm chart supports this: https://github.com/traefik/traefik-helm-chart/blob/v25.0.0/traefik/templates/_service.tpl

Feel free to open an issue at https://github.com/traefik/traefik-helm-chart/

edit

I take that back, it looks like you should be able do that via service.spec: https://github.com/traefik/traefik-helm-chart/blob/v25.0.0/traefik/templates/_service.tpl#L15

spec:
  valuesContent: |-
    service:
      spec:
        externalTrafficPolicy: Local

@brandond I have tried this but it still has no effect:

apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: traefik
  namespace: kube-system
spec:
  valuesContent: |-
    deployment:
      kind: DaemonSet
    service:
      spec:
        externalTrafficPolicy: Local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done Issue
Development

No branches or pull requests

3 participants