ancient-megabyte-79588
04/01/2020, 9:09 PMbillowy-army-68599
04/01/2020, 11:38 PMancient-megabyte-79588
04/02/2020, 2:10 PM// Deploy ingress-controller using helm to AKS Cluster
const nginxIngress = new k8s.helm.v3.Chart("nginx2", {
chart: "nginx-ingress-controller",
repo: "bitnami",
values: {
annotations: {
"<http://service.beta.kubernetes.io/azure-dns-label-name|service.beta.kubernetes.io/azure-dns-label-name>": infra.getOutput("k8sDnsName"),
"<http://service.beta.kubernetes.io/azure-load-balancer-resource-group|service.beta.kubernetes.io/azure-load-balancer-resource-group>": infra.getOutput("nodeResourceGroup")
},
serviceType: "LoadBalancer",
service:{loadBalancerIP: infra.getOutput("publicIpAddress")},
nodeCount: 2,
}
}, {provider: k8sProvider });
PublicIp
outside of the ResourceGroup that is created for the nodes in the cluster. The PublicIp
needs to be created in that resource group or else it cannot be assigned to the nginx ingress controller.