# Eviction of cattle-node-agent

**URL:** <https://forums.suse.com/t/eviction-of-cattle-node-agent/36465>\
**Category:** SUSE Rancher Prime\
**Created:** [December 15, 2021, 9:53am UTC](https://forums.suse.com/t/eviction-of-cattle-node-agent/36465 "2021-12-15T09:53:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuburoman](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kuburoman](https://forums.suse.com/u/kuburoman)\
**Post date:** [December 15, 2021, 9:53am UTC](https://forums.suse.com/t/eviction-of-cattle-node-agent/36465/1 "2021-12-15T09:53:20Z")

</div>

Hi,  
I have cluster with 50+ nodes and eviction policy set to:  
`eviction-hard: memory.available<1.6Gi`.

But first thing to be evicted is always cattle-node-agent or cluster-agent etc. What is recommended way to deal with this? Manually patching memory request for these deamonsets, setting priority class?

```auto
Events:
  Type Reason Age From Message
  ---- ------ ---- ---- -------
  Normal Scheduled 15m default-scheduler Successfully assigned cattle-system/cattle-node-agent-h8tpv to worker15
  Normal Pulled 15m kubelet Container image "harbor/rancher/rancher-agent:v2.6.0" already present on machine
  Normal Created 15m kubelet Created container agent
  Normal Started 15m kubelet Started container agent
  Warning Evicted 14m kubelet The node was low on resource: memory. Container agent was using 48248Ki, which exceeds its request of 0.
  Normal Killing 14m kubelet Stopping container agent

```

---

<div class="post-metadata">

**Author:** ![Pau\_Campana\_Soler](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/pau_campana_soler/32/9657_2.png) [@Pau\_Campana\_Soler](https://forums.suse.com/u/Pau_Campana_Soler)\
**Post date:** [November 24, 2022, 8:41am UTC](https://forums.suse.com/t/eviction-of-cattle-node-agent/36465/2 "2022-11-24T08:41:57Z")

</div>

same here. I would like to configure the configure priority class for cattle agent, but I think it is not possible now
