Hey anyone know why this happens? ```Plan apply fa...
# general
d
Hey anyone know why this happens?
Copy code
Plan apply failed: unable to fetch resource description for extensions/v1beta1: Unauthorized
c
Do you have rbac set correctly?
d
Hmm I think so
I’m trying to create the ingress using
k8s.extensions.v1beta1.Ingress
but always get unauthorized, however, I was able to create the cluster without ingress and create ingress manually after.
c
@damp-pillow-67781 can you paste the whole error?
d
Actually this is the whole error:
Copy code
Diagnostics:
  kubernetes:extensions:Ingress (ingress):
    error: Plan apply failed: unable to fetch resource description for extensions/v1beta1: Unauthorized
I’m double checking rbac set up
c
I mean the whole diagnostics output.
d
Copy code
pulumi:pulumi:Stack: (same)
    [urn=urn:pulumi:online-sandbox-yding::eks-cluster::pulumi:pulumi:Stack::eks-cluster-online-sandbox-yding]
    + kubernetes:extensions/v1beta1:Ingress: (create)
        [urn=urn:pulumi:online-sandbox-yding::eks-cluster::kubernetes:extensions/v1beta1:Ingress::ingress]
        apiVersion: "extensions/v1beta1"
        kind      : "Ingress"
        metadata  : {
            annotations: {
                <http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>: "nginx"
            }
            name       : "nginx-ingress"
        }
        spec      : {
            backend: {
                serviceName: "nginx-nginx-ingress-default-backend"
                servicePort: 80
            }
            rules  : [
                [0]: {
                    host: "<http://prometheus.online-sandbox-yding.online.dev.tabint.net|prometheus.online-sandbox-yding.online.dev.tabint.net>"
                    http: {
                        paths: [
                            [0]: {
                                backend: {
                                    serviceName: "prometheus-server"
                                    servicePort: 80
                                }
                            }
                        ]
                    }
                }
                [1]: {
                    host: "<http://grafana.online-sandbox-yding.online.dev.tabint.net|grafana.online-sandbox-yding.online.dev.tabint.net>"
                    http: {
                        paths: [
                            [0]: {
                                backend: {
                                    serviceName: "grafana"
                                    servicePort: 80
                                }
                            }
                        ]
                    }
                }
            ]
        }
error: Plan apply failed: unable to fetch resource description for extensions/v1beta1: Unauthorized
This is the whole output from pulumi
c
Just for those following along at home, this turned out to be a problem of not hooking up the provider correctly. EKS gives you a
provider
member which you have to pass into the end of a call to
new k8s.extensions.v1beta1.Ingress("...", {...}, {provider: eks.provider})