white-helicopter-55877
10/19/2022, 4:50 PMcontroller.service.loadBalancerIP
directive. Using
const regEngineIngress = new k8s.helm.v3.Chart(
"sample-engine-ingress",
{
repo: "<http://kubernetes.github.io|kubernetes.github.io>",
chart: "ingress-nginx",
version: "4.3.0",
fetchOpts: {
repo: "<https://kubernetes.github.io/ingress-nginx>",
},
namespace: clusterSvcsNamespace.metadata.name,
values: {
controller: {
replicaCount: 2,
nodeSelector: {
"kubernetes\.io/os": "linux",
},
service: {
loadBalancerIP: publicIp.ipAddress,
}
}
},
},
{ provider: k8sProvider },
);
That way, the public IP is assigned and since the public IP gets a A record automatically, it works nicely.