You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Gitttttttt (via GitHub)" <gi...@apache.org> on 2024/01/04 02:14:00 UTC
[I] request help: Failed to get APISIX gateway external IPs while applying an Ingress resource [apisix-ingress-controller]
Gitttttttt opened a new issue, #2123:
URL: https://github.com/apache/apisix-ingress-controller/issues/2123
### Issue description
Apisix-ingress-controller pod showed me error logs while applying an Ingress resource:

The ingress resource like this:

The backend service like this:

I can't understand why it reported this error, and what should I do to solve this problem?
### Environment
- your apisix-ingress-controller version (output of apisix-ingress-controller version --long): 1.7.0
- your Kubernetes cluster version (output of kubectl version): 1.22.15
- if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] request help: 502 Bad Gateway while requesting an Ingress resource [apisix-ingress-controller]
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #2123:
URL: https://github.com/apache/apisix-ingress-controller/issues/2123#issuecomment-1876564925
@Gitttttttt I see you are trying to send the request to port 8081 on the `httpbin` service but the port configured is `80`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] request help: 502 Bad Gateway while requesting an Ingress resource [apisix-ingress-controller]
Posted by "Gitttttttt (via GitHub)" <gi...@apache.org>.
Gitttttttt closed issue #2123: request help: 502 Bad Gateway while requesting an Ingress resource
URL: https://github.com/apache/apisix-ingress-controller/issues/2123
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] request help: 502 Bad Gateway while requesting an Ingress resource [apisix-ingress-controller]
Posted by "Gitttttttt (via GitHub)" <gi...@apache.org>.
Gitttttttt commented on issue #2123:
URL: https://github.com/apache/apisix-ingress-controller/issues/2123#issuecomment-1876723511
@Revolyssup Another question, If I need to access a backend from another namespace, I can use the `Ingress` resource and add a `k8s.apisix.apache.org/svc-namespace` annotation, but does this way only apply to L7 gateways (route)?If I want to access a backend(stream_route) from another namespace, what should I do? Is `Ingress` still in effect?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] request help: 502 Bad Gateway while requesting an Ingress resource [apisix-ingress-controller]
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #2123:
URL: https://github.com/apache/apisix-ingress-controller/issues/2123#issuecomment-1878132048
> @Revolyssup One more question, If I modify the path as follows, it response `404 Not Found`: 
>
> 
>
> But if I set path to `/`, it goes right, I'm confused, so is there any document for the pathType? thanks!  
The routing is fine. `httpbin` service doesn't have a route `/namespace/test/cookies`. The 404 is from httpbin service and not APISIX
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] request help: Failed to get APISIX gateway external IPs while applying an Ingress resource [apisix-ingress-controller]
Posted by "Gitttttttt (via GitHub)" <gi...@apache.org>.
Gitttttttt commented on issue #2123:
URL: https://github.com/apache/apisix-ingress-controller/issues/2123#issuecomment-1876229791
I get this solution:

but does it not seem to be effective

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] request help: 502 Bad Gateway while requesting an Ingress resource [apisix-ingress-controller]
Posted by "Gitttttttt (via GitHub)" <gi...@apache.org>.
Gitttttttt commented on issue #2123:
URL: https://github.com/apache/apisix-ingress-controller/issues/2123#issuecomment-1876612525
@Revolyssup yes, there are two `httpbin` services, another with 8081 port is in `test` namespace, But I found the port of httpbin pod must be 80, if I run with `kubectl expose pod httpbin --port 8081`, it can not be accessed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] request help: 502 Bad Gateway while requesting an Ingress resource [apisix-ingress-controller]
Posted by "Gitttttttt (via GitHub)" <gi...@apache.org>.
Gitttttttt commented on issue #2123:
URL: https://github.com/apache/apisix-ingress-controller/issues/2123#issuecomment-1876797424
@Revolyssup One more question, If I modify the path as follows, it response `404 Not Found`:


But if I set path to `/`, it goes right, I'm confused, so is there any document for the pathType? thanks!

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] request help: 502 Bad Gateway while requesting an Ingress resource [apisix-ingress-controller]
Posted by "Gitttttttt (via GitHub)" <gi...@apache.org>.
Gitttttttt commented on issue #2123:
URL: https://github.com/apache/apisix-ingress-controller/issues/2123#issuecomment-1878266371
ok, thanks very much
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] request help: 502 Bad Gateway while requesting an Ingress resource [apisix-ingress-controller]
Posted by "Gitttttttt (via GitHub)" <gi...@apache.org>.
Gitttttttt closed issue #2123: request help: 502 Bad Gateway while requesting an Ingress resource
URL: https://github.com/apache/apisix-ingress-controller/issues/2123
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] request help: 502 Bad Gateway while requesting an Ingress resource [apisix-ingress-controller]
Posted by "Gitttttttt (via GitHub)" <gi...@apache.org>.
Gitttttttt commented on issue #2123:
URL: https://github.com/apache/apisix-ingress-controller/issues/2123#issuecomment-1876646687
Now I have redeployed `httpbin` service and `apisix`, and I created an `Ingress`, but how should I access the `httpbin` service?

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] request help: 502 Bad Gateway while requesting an Ingress resource [apisix-ingress-controller]
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #2123:
URL: https://github.com/apache/apisix-ingress-controller/issues/2123#issuecomment-1876695187
> `pbin` serv
Hear your `Host` is wrong. Set it the same as you have set in Ingress
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org