Questo contenuto non è disponibile nella lingua selezionata.

Chapter 3. Troubleshooting


Read about troubleshooting and possible solutions for known issues.

3.1. Troubleshooting the NodePort service iptable rules

OVN-Kubernetes sets up an iptable chain in the network address translation (NAT) table to handle incoming traffic to the NodePort service. When the NodePort service is not reachable or the connection is refused, check the iptable rules on the host to make sure the relevant rules are properly inserted.

Procedure

  1. View the iptable rules for the NodePort service by running the following command:

    $ iptables-save | grep NODEPORT
    Copy to Clipboard Toggle word wrap

    Example output

    -A OUTPUT -j OVN-KUBE-NODEPORT
    -A OVN-KUBE-NODEPORT -p tcp -m addrtype --dst-type LOCAL -m tcp --dport 30326 -j DNAT --to-destination 10.43.95.170:80
    Copy to Clipboard Toggle word wrap

    OVN-Kubernetes configures the OVN-KUBE-NODEPORT iptable chain in the NAT table to match the destination port and Destination Network Address Translates (DNATs) the packet to the clusterIP service. The packet is then routed to the OVN network through the gateway bridge br-ex via routing rules on the host.

  2. Route the packet through the network with routing rules by running the following command:

    $ ip route
    Copy to Clipboard Toggle word wrap

    Example output

    10.43.0.0/16 via 192.168.122.1 dev br-ex mtu 1400
    Copy to Clipboard Toggle word wrap

    This routing rule matches the Kubernetes service IP address range and forwards the packet to the gateway bridge br-ex. You must enable ip_forward on the host. After the packet is forwarded to the OVS bridge br-ex, it is handled by OpenFlow rules in OVS which steers the packet to the OVN network and eventually to the pod.

Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat