Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/go/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Rest 如何访问Istio API?_Rest_Go_Kubernetes_Istio - Fatal编程技术网

Rest 如何访问Istio API?

Rest 如何访问Istio API?,rest,go,kubernetes,istio,Rest,Go,Kubernetes,Istio,我已经使用命令行istioctl create-f file.yaml创建了路由规则。我想通过自定义GO代码实现同样的功能。是否有用于创建路由规则的Istio API?是您正在寻找的。Istio使用的类型定义(从.proto文件生成)在这里-我不太确定它们是否是您正在寻找的?我正在寻找使用Istio API实现istioctl操作的方法。我发现可以使用curl-xpost-d@test2.json-H“Content-Type:application/json”创建路由规则http://loca

我已经使用命令行
istioctl create-f file.yaml
创建了路由规则。我想通过自定义GO代码实现同样的功能。是否有用于创建路由规则的Istio API?

是您正在寻找的。Istio使用的类型定义(从.proto文件生成)在这里-我不太确定它们是否是您正在寻找的?我正在寻找使用Istio API实现istioctl操作的方法。我发现可以使用
curl-xpost-d@test2.json-H“Content-Type:application/json”创建路由规则http://localhost:8001/apis/config.istio.io/v1alpha2/namespaces/default/routerules
。以同样的方式,是否可以使用api将侧车注入pod?