Skip to content

Unable to disable Traefik #1160

@riker09

Description

@riker09

Version:
k3s version v1.0.0 (18bd921)

Describe the bug
I am unable to disable the build-in traefik load balancer.

To Reproduce
According to documentation all files in /var/lib/rancher/k3s/server/manifests are automatically deployed. I have removed the traefik.yaml file from this folder and changed /etc/systemd/system/k3s.service, followed by systemctl daemon-reload (everything as root user, of course).

The new service file has these lines in it:

ExecStart=/usr/local/bin/k3s \
    server \
    --docker \
    --no-deploy traefik \

Restart k3s service with service k3s stop && service k3s start. (yes, I also tried service k3s restart)

Expected behavior

Expected kubectl -n kube-system get pods to not list traefik pod.

Actual behavior

The pod is still restarted on each service restart.

Additional context

Ubuntu 19.10 with Docker 19.03.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionNo code change, just asking/answering a question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions