我正在尝试使用内置管道使用rancher在kubernetes上部署应用程序。我正在使用网关+虚拟服务来公开端点。我的应用程序已部署,但网关创建失败,出现“禁止”错误。这是特权问题吗?我该如何解决
YAML文件(与kubectl命令完美配合,但与管道失败)
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: sampleapi-gateway
namespace: default
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- '*'
错误
+ kube-apply
perform env var substitution
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "networking.istio.io/v1alpha3, Resource=gatewaies", GroupVersionKind: "networking.istio.io/v1alpha3, Kind=Gateway"
Name: "sampleapi-gateway", Namespace: "default"
Object: &{map["kind":"Gateway" "metadata":map["name":"sampleapi-gateway" "namespace":"default" "annotations":map["kubectl.kubernetes.io/last-applied-configuration":""]] "spec":map["selector":map["istio":"ingressgateway"] "servers":[map["port":map["name":"http" "number":'P' "protocol":"HTTP"] "hosts":["*"]]]] "apiVersion":"networking.istio.io/v1alpha3"]}
from server for: "services/sampleapi/rancher-conf/gateway.yaml": gatewaies.networking.istio.io "sampleapi-gateway" is forbidden: User "system:serviceaccount:p-9flp2-pipeline:jenkins" cannot get resource "gatewaies" in API group "networking.istio.io" in the namespace "default"