Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error apigateway pod cannot resolve NIM instance #76

Open
Alarnos opened this issue Jan 22, 2025 · 1 comment
Open

Error apigateway pod cannot resolve NIM instance #76

Alarnos opened this issue Jan 22, 2025 · 1 comment

Comments

@Alarnos
Copy link

Alarnos commented Jan 22, 2025

Issue Summary

When using NGINX Plus R33 and NIM 2.18 with the standard /config declaration version 5.2, the following error occurs:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='nms.example.com', port=443): Max retries exceeded with url: /api/platform/v1/instance-groups (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fa7543572f0>: Failed to resolve 'nms.example.com' ([Errno -2] Name does not resolve)"))

Environment

NGINX Plus Version: R33
NIM Version: 2.18
Config Declaration Version: 5.2
Deployment: Kubernetes

Steps to Reproduce

Deploy NGINX Plus R33 on Kubernetes.
Use a DNS server on the same network as the Kubernetes cluster, configured for node resolution.

Observed Behavior

When the NIM instance DNS name is used in the nim_host Postman variable to publish the example API (v5.2), the following error occurs:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='nms.example.com', port=443): Max retries exceeded with url: /api/platform/v1/instance-groups (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fa7543572f0>: Failed to resolve 'nms.example.com' ([Errno -2] Name does not resolve)"))

However, the NIM instance resolves correctly when using the nslookup command inside the pod.

Expected Behavior

The NIM host should be correctly resolved by the Declarative API instance.

If additional logs or screenshots are required to clarify the issue, I can provide them upon request.

@fabriziofiorucci
Copy link
Collaborator

Thank you @Alarnos could you please share the output of the following commands, run inside the declarative API pod:

nslookup -type=a nms.example.com
ping nms.example.com
cat /etc/resolv.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants