Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
[id="k8s-nmstate-troubleshooting-dns-disconnected-env-resolv.adoc_{context}"]
= Creating a custom DNS host name to resolve DNS connectivity issues

In a disconnected environment where the external DNS server cannot be reached, you can resolve Kubernetes NMState Operator health probe issues by specifying a custom DNS host name in the `NMState` custom resource definition (CRD).
In a disconnected environment where the external DNS server cannot be configured, you can resolve Kubernetes NMState Operator health probe issues by specifying a custom DNS host name in the `NMState` custom resource definition (CRD).

.Procedure

. Add the DNS host name configuration to the `NMState` CRD of your cluster:
. Replace the DNS host name with your own resolvable hostname in the `NMState` CRD of your cluster:
+
[source,yaml]
----
Expand All @@ -21,15 +21,16 @@ metadata:
spec:
probeConfiguration:
dns:
host: redhat.com
host: redhat.com <1>
# ...
----
<1> The hostname that can be successfully resolved in your own DNS server

. Apply the DNS host name configuration to your cluster network by running the following command. Ensure that you replace `<filename>` with the name of your CRD file.
. To change the hostname, edit the DNS host name configuration to your cluster network by running the following command.
+
[source,yaml]
----
$ oc apply -f <filename>.yaml
$ oc edit nmstate nmstate
----


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ include::modules/virt-troubleshooting-incorrect-policy-config.adoc[leveloffset=+
// Troubleshooting DNS connectivity issues in a disconnected environment
include::modules/k8s-nmstate-troubleshooting-dns-disconnected-env.adoc[leveloffset=+1]

// Configuring the dnsmasq DNS server
include::modules/k8s-nmstate-troubleshooting-dns-disconnected-env-dnsmasq.adoc[leveloffset=+2]

// Creating a custom DNS host name to resolve DNS connectivity issues
include::modules/k8s-nmstate-troubleshooting-dns-disconnected-env-resolv.adoc[leveloffset=+2]

// Configuring the dnsmasq DNS server
include::modules/k8s-nmstate-troubleshooting-dns-disconnected-env-dnsmasq.adoc[leveloffset=+2]