:wave: <#C01PHNP149L|rke2> When I try to install r...
# rke2
g
👋 #rke2 When I try to install rke2 from rancher that we have set my cluster fails until i do
Copy code
kubectl -n cattle-system edit deployment.apps/cattle-cluster-agent
and replace
Copy code
dnsPolicy: ClusterFirst
with
Copy code
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
and then it's all more or less nice and dandy. i had to delete few helm pods so they are recreated and so on but cluster lives and works as expected. as in we haven't seen anything really wrong with it until now. So my question is - when standing up new cluster where could i add these lines to so it just works on first run? My guess would be
Copy code
/var/lib/rancher/rke2/server/manifests/rancher/cluster-agent.yaml
but i'm not sure under which part and how really. Could you please give me a hand with this?