在Azure AKS中创建内部混合协议负载平衡器

时间:2020-03-04 13:38:31

标签: azure kubernetes azure-aks azure-load-balancer

我正在尝试使用以下Yaml在Azure AKS(尝试1.15.5、1.15.7和1.16.4)中创建内部混合协议负载平衡器:

---
apiVersion: v1
kind: Service
metadata:
  annotations:
    service.beta.kubernetes.io/azure-load-balancer-mixed-protocols: "true"
    service.beta.kubernetes.io/azure-load-balancer-internal: "true"
  name: consullb
spec:
  ports:
        - port: 8500
          targetPort: 8500
          name: http
          protocol: TCP
        - port: 8400
          targetPort: 8400
          name: rpc
          protocol: TCP
        - port: 8301
          targetPort: 8301
          name: serflan-tcp
          protocol: TCP
        - port: 8302
          targetPort: 8302
          name: serfwan-tcp
          protocol: TCP
        - port: 8300
          targetPort: 8300
          name: server
          protocol: TCP
        - port: 8600
          targetPort: 8600
          name: consuldns-tcp
          protocol: TCP
        - port: 8301
          targetPort: 8301
          name: serflan-udp
          protocol: UDP
        - port: 8302
          targetPort: 8302
          name: serfwan-udp
          protocol: UDP
        - port: 8600
          targetPort: 8600
          name: consuldns-udp
          protocol: UDP
  selector:
    component: consul-1582621245-consul    
  type: LoadBalancer

我收到以下错误:

cannot create an external load balancer with mix protocols

我测试了两个不同的群集,一个使用标准SKU,一个使用基本SKU。

我在这里想念什么吗?还是有人可以指出其他方面来尝试/解决问题?

0 个答案:

没有答案