Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.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
Kubernetes 如何在istio operator修补程序中添加服务注释_Kubernetes_Kubectl_Istio - Fatal编程技术网

Kubernetes 如何在istio operator修补程序中添加服务注释

Kubernetes 如何在istio operator修补程序中添加服务注释,kubernetes,kubectl,istio,Kubernetes,Kubectl,Istio,我正在使用带有以下配置文件的istioctl安装istio 1.6.0: -- apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: profile: default components: egressGateways: - name: istio-egressgateway enabled: true ingressGateways: - name: is

我正在使用带有以下配置文件的
istioctl
安装istio 1.6.0:

--
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  profile: default
  components:
    egressGateways:
      - name: istio-egressgateway
        enabled: true
    ingressGateways:
      - name: istio-ingressgateway
        enabled: true
        k8s:
          overlays:
          - kind: Service
            name: istio-ingressgateway
            patches:
            - path: spec.loadBalancerIP
              value: x.x.x.x
            - path: spec.externalTrafficPolicy
              value: Local
            - path: metadata.annotations.[service.beta.kubernetes.io/azure-load-balancer-resource-group]
              value: az-rg-group
这部分给了我一个错误:

- path: metadata.annotations.[service.beta.kubernetes.io/azure-load-balancer-resource-group]
  value: az-rg-group
错误:未能应用清单:操作期间发生错误

注释的路径不正确。如何提供具有有效语法的注释路径


遵循此示例代码:

有一个新的服务注释字段。这里提出了这个问题

请参考以下示例


对于任何像我一样注意到上面的链接已断开的人,。谢谢,用文件更新了答案中的链接。
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  components:
    pilot:
      enabled: false
    ingressGateways:
    - namespace: istio-system
      name: istio-ingressgateway
      enabled: true
      k8s:
        service:
          externalTrafficPolicy: Local
        serviceAnnotations:
          manifest-generate: "testserviceAnnotation"
        securityContext:
          sysctls:
          - name: "net.ipv4.ip_local_port_range"
            value: "80 65535"