-
What is the most appropriate way to permanently modify the The search domain on each node is propagated to my pods and resulting in hundreds of thousands of invalid forwarded lookups. I've currently applied a machineConfig that overwrites |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 6 replies
-
Set nameserver / search domains in NetworkManager - it would update |
Beta Was this translation helpful? Give feedback.
-
I attempted to apply a Ultimately I made the modifications via Edit: It looks like you can install it after the fact: https://docs.okd.io/latest/networking/k8s_nmstate/k8s-nmstate-about-the-k8s-nmstate-operator.html |
Beta Was this translation helpful? Give feedback.
-
you can, that's what I did. But I think I did not fully understand the NNCP. Do you still have the .yaml you created around? |
Beta Was this translation helpful? Give feedback.
-
Here is the OpenShift documentation: And the very simple yaml I was going to apply before I ran apiVersion: nmstate.io/v1
kind: NodeNetworkConfigurationPolicy
metadata:
name: 99-okd-worker-resolvconf
spec:
nodeSelector:
node-role.kubernetes.io/worker: ""
desiredState:
dns-resolver:
config:
server:
- 10.0.10.1
- 10.0.10.2
search:
- domain.lan |
Beta Was this translation helpful? Give feedback.
-
I'm running into some issues configuring the search domains. I tried applying the followin NNCP but when doing that, the cluster fails to update, service routes and API becomse unavailable and starts throwing 503 service errors. NNCP: apiVersion: nmstate.io/v1
kind: NodeNetworkConfigurationPolicy
metadata:
name: okd-nodes-resolvconf
spec:
maxUnavailable: 1
desiredState:
dns-resolver:
config:
server:
- 10.24.12.17
- 10.242.5.17
search:
- cluster.local
- k8s.cluster.be # basedomain
- rmp.be
- xyz.be
- servers.xyz.be
- servers.dmf.be Anybody that was able to solve this issue? Thanks |
Beta Was this translation helpful? Give feedback.
-
any updates on this?! |
Beta Was this translation helpful? Give feedback.
-
actually, I wanted to completely unset it, b4mad/op1st-emea-b4mad@b8d19c0#diff-c8d79ed8662a41394a65288ed72d9ad31302677dcb4df514a1de5c5f293033c6 is the latest code. it 'felt' like the cluster is not always reconfigured correctly (after reboots??) so that /etc/resolv.conf is overwritten by NetworkManager. let's see... |
Beta Was this translation helpful? Give feedback.
Set nameserver / search domains in NetworkManager - it would update
/var/run/NetworkManager/resolv.conf
and subsequently/run/systemd/resolve/resolv.conf