Replies: 2 comments
-
okay I googled and it said that this is a feature of k3s, fine fine, but I still need to know how to modify listening port. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You need to edit the Traefik helmchart deployment, not the loadbalancer daemonset created to expose traefik. https://rancher.com/docs/k3s/latest/en/helm/#customizing-packaged-components-with-helmchartconfig in particular, what you'd want to change would look something like: apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
ports:
web:
exposedPort: 8080 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
using k3s-1.24.2-k3s1 as 80 port is not available at my machine, I tried to
k3s kubectl edit daemonset svclb-traefik-53792b1c -n kube-system
I changed the environment variable SRC_PORT in spec.template.spec.containers.env from 80 to 8080, and spec.template.spec.containers.env.ports.hostPort also from 80 to 8080.
but edit neither one nor both worked.
I described the daemonset and it said that the pods are reload, but still with the original config.
Am I doing something wrong? Or it is not likely to modifying listening host port of traefik daemon set?
Beta Was this translation helpful? Give feedback.
All reactions