Unable to remove Traefik in order to use Nginx ingresss

I’m struggling to completely remove Traefik. Have found several posts and tutorials, but none seem to work.
among other things I have tried:

kubectl -n kube-system delete helmcharts.helm.cattle.io traefik
sudo service k3s stop

adding '--disable=traefik' \ to the end of
/etc/systemd/system/k3s.service

sudo systemctl daemon-reload
sudo rm /var/lib/rancher/k3s/server/manifests/traefik.yaml
sudo service k3s start

have done the same process with sudo service k3s start --disable=traefik

But now matter what I still get:

kubectl get all -A | grep traefik
kube-system       pod/helm-delete-traefik-crd-nzk8x                   0/1     Completed          0                 16h
kube-system       pod/traefik-7c98465984-sg9sh                        1/1     Running            1 (16h ago)       43h
kube-system       pod/svclb-traefik-f8df14d4-gf2qw                    2/2     Running            0                 16h
kube-system      service/traefik                              LoadBalancer   10.43.175.215   10.22.48.144   80:32227/TCP,443:31723/TCP        46h
kube-system   daemonset.apps/svclb-traefik-f8df14d4                    1         1         1       1            1           <none>          46h
kube-system       deployment.apps/traefik                      1/1     1            1           46h
kube-system       replicaset.apps/traefik-56b8c5fb5c                      0         0         0       46h
kube-system       replicaset.apps/traefik-7c98465984                      1         1         1       43h
kube-system   job.batch/helm-delete-traefik-crd   1/1           4s         16h

@acatkrom Hi and welcome to the Forum :smile:

I use;

ExecStart=/usr/local/bin/k3s \
    server \
	'--disable' \
	'traefik' \
	'--node-ip' \
	'xxx.xxx.xxx.xxx' \
	'--node-external-ip' \
	'xxx.xxx.xxx.xxx' \

Thanks!!
I’ve just done that, and still seem to have Traefik hangin on:

kubectl get all -A | grep traefik
kube-system       pod/helm-delete-traefik-crd-nzk8x                   0/1     Completed          0               16h
kube-system       pod/traefik-7c98465984-sg9sh                        1/1     Running            1 (17h ago)     43h
kube-system       pod/svclb-traefik-f8df14d4-gf2qw                    2/2     Running            0               16h
kube-system      service/traefik                              LoadBalancer   xxx.xxx.xxx.xxx   xxx.xxx.xxx.xxx   80:32227/TCP,443:31723/TCP        47h
kube-system   daemonset.apps/svclb-traefik-f8df14d4                    1         1         1       1            1           <none>          47h
kube-system       deployment.apps/traefik                      1/1     1            1           47h
kube-system       replicaset.apps/traefik-56b8c5fb5c                      0         0         0       47h
kube-system       replicaset.apps/traefik-7c98465984                      1         1         1       43h
kube-system   job.batch/helm-delete-traefik-crd   1/1           4s         16h

Update to close this. I ended up deleting the services, deployments, and replicasets shown above, and nginx started and runs as it should

1 Like