adamant-terabyte-3965
06/10/2022, 4:57 PMnew k8s.networking.v1.Ingress
and am failing the pulumi up
with this error:
kubernetes:<http://networking.k8s.io/v1:Ingress|networking.k8s.io/v1:Ingress> (api-ingress):
error: resource test/api-ingress was not successfully created by the Kubernetes API server : admission webhook "vingress.elbv2.k8s.aws" denied the request: invalid ingress class: <http://IngressClass.networking.k8s.io|IngressClass.networking.k8s.io> "alb" not found
The way I have set it up is extremely similar to this blog post: https://www.pulumi.com/blog/kubernetes-ingress-with-aws-alb-ingress-controller-and-pulumi-crosswalk/
Does anyone have any idea what is going wrong? Ultimately I'd like to have it set up where the ALB Controller auto creates an ALB when detecting an ingress, I'm not completely sure its even the ingress creation that is the issue.billowy-army-68599
adamant-terabyte-3965
06/10/2022, 4:58 PMbillowy-army-68599
adamant-terabyte-3965
06/10/2022, 5:01 PMbillowy-army-68599
adamant-terabyte-3965
06/10/2022, 6:13 PMbillowy-army-68599
adamant-terabyte-3965
06/10/2022, 6:14 PMaws-load-balancer-controller
by setting the values:
option createIngressClassResource
to true
, and that seems to create the IngressClass just fine on AWS.
However, the Ingress controller creation is still failing in its initialization (although it is created) due to the following error from Pulumi CLI:
* resource luke-test/api-ingress was successfully created, but the Kubernetes API server reported that it failed to fully initialize or become live: 'api-ingress' timed out waiting to be Ready
* Ingress .status.loadBalancer field was not updated with a hostname/IP address.
for more information about this error, see <https://pulumi.io/xdv72s>
After looking into the Pulumi Troubleshooting page I tried to run a pulumi refresh
as it suggests, and that resulted in:
Diagnostics:
kubernetes:<http://networking.k8s.io/v1:Ingress|networking.k8s.io/v1:Ingress> (api-ingress):
warning: Refreshed resource is in an unhealthy state:
* Resource 'api-ingress' was created but failed to initialize
* Ingress .status.loadBalancer field was not updated with a hostname/IP address.
for more information about this error, see <https://pulumi.io/xdv72s>
while on my AWS console the Ingress reports:
Failed build model due to couldn't auto-discover subnets: unable to discover at least one subnet
If the pulumi refresh
isn't going to resolve that error, how should I move forward? I've seen similar problems in this Slack and on Github but I'm not sure which of those solutions would be applicable to my current circumstance.aws-load-balancer-controller
is reporting
{
"level": "error",
"ts": 1655156031.6442547,
"logger": "controller-runtime.manager.controller.ingress",
"msg": "Reconciler error",
"name": "api-ingress",
"namespace": "luke-test",
"error": "couldn't auto-discover subnets: unable to discover at least one subnet"
}
It looks like to me from logs previous to that error the aws-load-balancer-controller
is creating correctly, but upon detecting the ingress
this error starts. Is this a problem with Pulumi's automation or my aws-load-balancer-controller
config?billowy-army-68599
adamant-terabyte-3965
06/14/2022, 1:32 AM