You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "wfy-belief (via GitHub)" <gi...@apache.org> on 2024/12/01 03:24:18 UTC

[I] request help: 通过 ingress controller 配置路由的时候,文档描述有问题 [apisix-ingress-controller]

wfy-belief opened a new issue, #2331:
URL: https://github.com/apache/apisix-ingress-controller/issues/2331

   ### Issue description
   
   配置 TCP 四层代理的时候,根据文档来配置 https://apisix.apache.org/docs/ingress-controller/references/apisix_route_v2/
   ![image](https://github.com/user-attachments/assets/fe71b929-61d1-4cce-865c-24808abee828)
   
   根据文档描述,配置 stream 参数的时候,发现这个地方文档是不是有错误
   
   ```yaml
   apiVersion: apisix.apache.org/v2
   kind: ApisixRoute
   metadata:
     name: mysql-stream-route
   spec:
     stream:
       - name: mysql-master
         protocol: TCP
         match:
           ingressPort: 3306
     http:
       - backends:
           - serviceName: mysql
             servicePort: 3306
   ```
   
   结果如下:
   ```bash
   The ApisixRoute "redis-stream-route" is invalid: 
   * <nil>: Invalid value: "": "spec.http[0]" must validate at least one schema (anyOf)
   * spec.http[0].name: Required value
   * spec.http[0].match: Required value
   * spec.stream[0].backend: Required value
   ```
   
   
   ### Environment
   
   - your apisix-ingress-controller version (output of apisix-ingress-controller version --long):
   - your Kubernetes cluster version (output of kubectl version):
   - 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: 通过 ingress controller 配置路由的时候,文档描述有问题 [apisix-ingress-controller]

Posted by "wfy-belief (via GitHub)" <gi...@apache.org>.
wfy-belief closed issue #2331: request help: 通过 ingress controller 配置路由的时候,文档描述有问题
URL: https://github.com/apache/apisix-ingress-controller/issues/2331


-- 
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