This message was deleted.
s
This message was deleted.
1
b
so a couple of things here: - firstly, you might want to try the latest and greatest version of this ingress controller: https://github.com/kubernetes-sigs/aws-load-balancer-controller - the error appears to be coming from the
helm template
command, it creates a temporary directory but then it can't find it. I think it might be related to an old helm version on your machine, but I can't be sure - as luck would have it, I'm doing a workshop tonight on installing this very thing! Have a look at this content: https://pulumi.awsworkshop.io/50_eks_platform/30_deploy_ingress_controller.html i'm sure it'll fix this issue
e
I've resolved this by using the official helm chart through the repo, but it seems the helm chart has an issue with a
CustomResourceDefintion
. Will report to maintainers. In the meantime if anyone has an error along the lines of:
Copy code
CustomResourceDefinition got an unexpected keyword argument 'status'
Add a transformer to remove it, like so:
Copy code
def remove_cdr_status(obj):
    if not isinstance(obj, dict):
        return
    if not obj["kind"] == "CustomResourceDefinition":
        return
    del obj["status"]

helm.Chart(
    "alb",
    config=helm.ChartOpts(
        repo="eks",
        chart="aws-load-balancer-controller",
        version="1.1.0",
        namespace=alb_ingress_namespace.metadata.name,
        transformations=[remove_cdr_status],
        # <https://github.com/aws/eks-charts/blob/master/stable/aws-load-balancer-controller/values.yaml>
        values={
            "clusterName": cluster.name,
            "autoDiscoverAwsRegion": "true",
            "autoDiscoverAwsVpcID": "true",
        },
    ),
    opts=ResourceOptions(provider=cluster.provider),
)
@billowy-army-68599 just sniped my solution! thanks for your help though 😄
b
@elegant-island-39916 there's instructions on how to fix that with a transformation here: https://pulumi.awsworkshop.io/50_eks_platform/30_deploy_ingress_controller/20_deploy_ingress_ctrl.html (step 4)
👍 1
ah yes, sorry didn't read properly!
@elegant-island-39916 if you could link me to the issue you open for the status thing, it would be appreciated, I'll link it in tonight's workshop!
e
Sure, I'm just creating it now! 🙂
b
amazing, thanks!
👍 1