【问题标题】:Azure Load Balancer on Kubernetes IaaS ClusterKubernetes IaaS 集群上的 Azure 负载均衡器
【发布时间】:2018-02-27 04:53:48
【问题描述】:

我已经为此奋斗了几个小时,但我不知道如何让 Kubernetes 在 IaaS Kubernetes 集群中配置 Azure 负载均衡器。

正如您所料,这与 AKS 一起工作 OOB。

显然,我缺少可以输入服务主体以允许 k8s 能够在 Azure 中配置资源的地方。

【问题讨论】:

  • 您使用的是 Azure 容器服务吗?或者你说的是 acs-engine?

标签: azure kubernetes


【解决方案1】:

官方推荐的方式是ACS-Engine。描述它有点过头了,但是当你定义你的集群时,你应该向它提供 Azure 凭据:

{
  "apiVersion": "vlabs",
  "properties": {
    "orchestratorProfile": {
      "orchestratorType": "Kubernetes"
    },
    "masterProfile": {
      "count": 1,
      "dnsPrefix": "",
      "vmSize": "Standard_D2_v2"
    },
    "agentPoolProfiles": [
      {
        "name": "agentpool1",
        "count": 3,
        "vmSize": "Standard_D2_v2",
        "availabilityProfile": "AvailabilitySet"
      }
    ],
    "linuxProfile": {
      "adminUsername": "azureuser",
      "ssh": {
        "publicKeys": [
          {
            "keyData": ""
          }
        ]
      }
    },
    "servicePrincipalProfile": {
      "clientId": "CLIENT_ID_GOES_HERE",
      "secret": "CLIENT_SECRET_GOES_HERE"
    }
  }
}

在您为集群配置正确的输入后,它将立即可用。 Walkthrough

【讨论】:

    猜你喜欢
    • 2016-12-30
    • 1970-01-01
    • 1970-01-01
    • 2021-06-22
    • 1970-01-01
    • 2018-10-24
    • 2017-08-13
    • 1970-01-01
    • 2021-01-27
    相关资源
    最近更新 更多