# HA traefik ingress

**URL:** <https://forums.suse.com/t/ha-traefik-ingress/39331>\
**Category:** k3s, k3OS, and k3d\
**Created:** [November 1, 2022, 8:21am UTC](https://forums.suse.com/t/ha-traefik-ingress/39331 "2022-11-01T08:21:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![slaash](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/slaash/32/6265_2.png) [@slaash](https://forums.suse.com/u/slaash)\
**Post date:** [November 1, 2022, 8:21am UTC](https://forums.suse.com/t/ha-traefik-ingress/39331/1 "2022-11-01T08:21:06Z")

</div>

Hi!  
I noticed that when installing k3s it deployes the traefik ingress with just one replica. This can lead to some downtime if the node running traefik goes down, until the pod is created on another node.  
I can manually scale the traefik deployment to more replicas but somehow this gets reset automatically to 1 (probably by helm).  
Is there a way to configure the traefik replicas count at k3s install time (or later)?

---

<div class="post-metadata">

**Author:** ![camasaki](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/camasaki/32/8968_2.png) [@camasaki](https://forums.suse.com/u/camasaki)\
**Post date:** [November 3, 2022, 6:37am UTC](https://forums.suse.com/t/ha-traefik-ingress/39331/2 "2022-11-03T06:37:28Z")

</div>

It’s a tragedy how un-HA K3S is out of the box.

You can either edit YAMLs in `/var/lib/rancher/k3s/server/manifests/` or edit `helmchartconfig`.

We run the ingres controllers on all nodes as a DaemonSet:  
You might want to consider these:

```bash
# Ensure `traefik` ingress controller runs on all nodes:
kubectl edit helmchartconfig -n kube-system
# Add:
    deployment:
      kind: DaemonSet

```

You might also want to run `coredns` runs on all nodes:

```bash
kubectl edit helmchartconfig -n kube-system
# Add:
    deployment:
      kind: DaemonSet

```

Nevertheless you will see that Kubernetes still routes traffic to pods on dead nodes for up to 30s.
