Skip to content

install question: in v0.2.0 use Backend #829

@googs1025

Description

@googs1025

Description:

Describe the issue.

I'm adapting v0.2.0 to other projects here, but I seem to have some problems.

I use yaml like this:
But it seems that the request cannot be 🤔

apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
metadata:
  name: default-envoy-ai-gateway
spec:
  controllerName: gateway.envoyproxy.io/gatewayclass-controller
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
  name: default-envoy-ai-gateway
spec:
  gatewayClassName: default-envoy-ai-gateway
  listeners:
    - name: http
      protocol: HTTP
      port: 80
---
apiVersion: aigateway.envoyproxy.io/v1alpha1
kind: AIGatewayRoute
metadata:
  name: default-envoy-ai-gateway
spec:
  schema:
    name: OpenAI
  targetRefs:
    - name: default-envoy-ai-gateway
      kind: Gateway
      group: gateway.networking.k8s.io
  rules:
    - matches:
        - headers:
            - type: Exact
              name: x-ai-eg-model
              value: qwen3-0--6b
      backendRefs:
        - name: qwen3-0--6b
      modelsOwnedBy: "llmaz"
      timeouts:
        request: 3m
---
apiVersion: aigateway.envoyproxy.io/v1alpha1
kind: AIServiceBackend
metadata:
  name: qwen3-0--6b
spec:
  schema:
    name: OpenAI
  backendRef:
    name: qwen3-0--6b
    kind: Backend
    group: gateway.envoyproxy.io
---
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: Backend
metadata:
  name: qwen3-0--6b
  namespace: default
spec:
  endpoints:
    - fqdn:
        hostname: qwen3-0--6b-lb.default.svc.cluster.local
        port: 8080

envoy-default-default-envoy-ai-gateway pod log:
It seems to return directly without any request to the backend.

root@VM-0-13-ubuntu:/home/ubuntu# kubectl get pods -nllmaz-system
NAME                                                              READY   STATUS    RESTARTS   AGE
ai-gateway-controller-659ccb85f-ms6rx                             1/1     Running   0          106m
envoy-default-default-envoy-ai-gateway-dbec795a-7c749cbb8bxkz8n   2/2     Running   0          70m
envoy-gateway-66bb759c9-fz4pd                                     1/1     Running   0          106m
llmaz-controller-manager-76fc68d85d-5h2zc                         1/1     Running   0          106m
llmaz-lws-controller-manager-6969954975-cgsh2                     1/1     Running   0          106m
open-webui-66d8b668b8-ft7tx                                       1/1     Running   0          106m
root@VM-0-13-ubuntu:/home/ubuntu# kubectl logs -f envoy-default-default-envoy-ai-gateway-dbec795a-7c749cbb8bxkz8n -nllmaz-system
Defaulted container "envoy" out of: envoy, shutdown-manager
{":authority":"localhost:8080","bytes_received":0,"bytes_sent":0,"connection_termination_details":null,"downstream_local_address":"127.0.0.1:10080","downstream_remote_address":"127.0.0.1:43924","duration":0,"method":"GET","protocol":"HTTP/1.1","requested_server_name":null,"response_code":500,"response_code_details":"direct_response","response_flags":"-","route_name":"httproute/default/default-envoy-ai-gateway/rule/2/match/0/*","start_time":"2025-07-05T02:46:49.051Z","upstream_cluster":null,"upstream_host":null,"upstream_local_address":null,"upstream_transport_failure_reason":null,"user-agent":"curl/8.5.0","x-envoy-origin-path":"/v1/models","x-envoy-upstream-service-time":null,"x-forwarded-for":"10.6.2.37","x-request-id":"4c148a11-2dc6-4728-a75d-561d36fe7086"}
{":authority":"localhost:8080","bytes_received":0,"bytes_sent":0,"connection_termination_details":null,"downstream_local_address":"127.0.0.1:10080","downstream_remote_address":"127.0.0.1:32994","duration":0,"method":"GET","protocol":"HTTP/1.1","requested_server_name":null,"response_code":500,"response_code_details":"direct_response","response_flags":"-","route_name":"httproute/default/default-envoy-ai-gateway/rule/2/match/0/*","start_time":"2025-07-05T02:47:17.912Z","upstream_cluster":null,"upstream_host":null,"upstream_local_address":null,"upstream_transport_failure_reason":null,"user-agent":"curl/8.5.0","x-envoy-origin-path":"/v1/models","x-envoy-upstream-service-time":null,"x-forwarded-for":"10.6.2.37","x-request-id":"c146e642-531b-41aa-9958-6f5d61965783"}
{":authority":"localhost:8080","bytes_received":0,"bytes_sent":0,"connection_termination_details":null,"downstream_local_address":"127.0.0.1:10080","downstream_remote_address":"127.0.0.1:59726","duration":0,"method":"GET","protocol":"HTTP/1.1","requested_server_name":null,"response_code":500,"response_code_details":"direct_response","response_flags":"-","route_name":"httproute/default/default-envoy-ai-gateway/rule/2/match/0/*","start_time":"2025-07-05T02:47:41.914Z","upstream_cluster":null,"upstream_host":null,"upstream_local_address":null,"upstream_transport_failure_reason":null,"user-agent":"curl/8.5.0","x-envoy-origin-path":"/v1/models","x-envoy-upstream-service-time":null,"x-forwarded-for":"10.6.2.37","x-request-id":"5693f1e9-2117-4baf-83bb-4514a132d193"}
{":authority":"localhost:8080","bytes_received":0,"bytes_sent":0,"connection_termination_details":null,"downstream_local_address":"127.0.0.1:10080","downstream_remote_address":"127.0.0.1:59738","duration":0,"method":"GET","protocol":"HTTP/1.1","requested_server_name":null,"response_code":500,"response_code_details":"direct_response","response_flags":"-","route_name":"httproute/default/default-envoy-ai-gateway/rule/2/match/0/*","start_time":"2025-07-05T02:47:46.777Z","upstream_cluster":null,"upstream_host":null,"upstream_local_address":null,"upstream_transport_failure_reason":null,"user-agent":"curl/8.5.0","x-envoy-origin-path":"/v1/models","x-envoy-upstream-service-time":null,"x-forwarded-for":"10.6.2.37","x-request-id":"2e4c9963-0da0-4b76-9905-e0c75b853694"}
{":authority":"localhost:8080","bytes_received":0,"bytes_sent":0,"connection_termination_details":null,"downstream_local_address":"127.0.0.1:10080","downstream_remote_address":"127.0.0.1:47424","duration":0,"method":"GET","protocol":"HTTP/1.1","requested_server_name":null,"response_code":500,"response_code_details":"direct_response","response_flags":"-","route_name":"httproute/default/default-envoy-ai-gateway/rule/2/match/0/*","start_time":"2025-07-05T02:53:37.248Z","upstream_cluster":null,"upstream_host":null,"upstream_local_address":null,"upstream_transport_failure_reason":null,"user-agent":"curl/8.5.0","x-envoy-origin-path":"/v1/mo

ai-gateway crd

root@VM-0-13-ubuntu:/home/ubuntu# kubectl get aigatewayroutes
NAME                       STATUS
default-envoy-ai-gateway   Accepted
root@VM-0-13-ubuntu:/home/ubuntu# kubectl get aiservicebackends
NAME             STATUS
qwen2--5-coder   Accepted
qwen2-0--5b      Accepted
root@VM-0-13-ubuntu:/home/ubuntu# kubectl get back

backend crd

---
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: Backend
metadata:
name: envoy-ai-gateway-basic-openai
namespace: default
spec:
endpoints:
- fqdn:
hostname: api.openai.com
port: 443
---

It seems that there is some problem here, but I am trying to add backend according to this example. Is there any other operation I have not done yet? 🤔

root@VM-0-13-ubuntu:/home/ubuntu# kubectl get backend
NAME                               STATUS   AGE
envoy-ai-gateway-extproc-backend            102s
qwen2--5-coder                              102s
qwen2-0--5b                                 102s
root@VM-0-13-ubuntu:/home/ubuntu# kubectl describe backend
Name:         envoy-ai-gateway-extproc-backend
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  gateway.envoyproxy.io/v1alpha1
Kind:         Backend
Metadata:
  Creation Timestamp:  2025-07-05T03:58:15Z
  Generation:          1
  Resource Version:    15943710
  UID:                 94ac0cce-49a4-43a6-b987-dff999e6d7f3
Spec:
  Endpoints:
    Unix:
      Path:  /etc/ai-gateway-extproc-uds/run.sock
  Type:      Endpoints
Status:
  Conditions:
    Last Transition Time:  2025-07-05T03:58:15Z
    Message:               The Backend was not accepted since Backend is not enabled in Envoy Gateway Config
    Observed Generation:   1
    Reason:                Accepted
    Status:                False
    Type:                  Invalid
Events:                    <none>


Name:         qwen2--5-coder
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  gateway.envoyproxy.io/v1alpha1
Kind:         Backend
Metadata:
  Creation Timestamp:  2025-07-05T03:58:15Z
  Generation:          1
  Resource Version:    15943701
  UID:                 cfa7a1a8-7fc9-4c46-95ee-06edb98dc169
Spec:
  Endpoints:
    Fqdn:
      Hostname:  qwen2--5-coder-lb.default.svc.cluster.local
      Port:      8080
  Type:          Endpoints
Status:
  Conditions:
    Last Transition Time:  2025-07-05T03:58:15Z
    Message:               The Backend was not accepted since Backend is not enabled in Envoy Gateway Config
    Observed Generation:   1
    Reason:                Accepted
    Status:                False
    Type:                  Invalid
Events:                    <none>


Name:         qwen2-0--5b
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  gateway.envoyproxy.io/v1alpha1
Kind:         Backend
Metadata:
  Creation Timestamp:  2025-07-05T03:58:15Z
  Generation:          1
  Resource Version:    15943700
  UID:                 15b9028f-b2f5-45aa-9d8c-d91fccf20d16
Spec:
  Endpoints:
    Fqdn:
      Hostname:  qwen2-0--5b-lb.default.svc.cluster.local
      Port:      8080
  Type:          Endpoints
Status:
  Conditions:
    Last Transition Time:  2025-07-05T03:58:15Z
    Message:               The Backend was not accepted since Backend is not enabled in Envoy Gateway Config
    Observed Generation:   1
    Reason:                Accepted
    Status:                False
    Type:                  Invalid
Events:                    <none>

[optional Relevant Links:]

Any extra documentation required to understand the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions