https://pulumi.com logo
#general
Title
# general
d

damp-pillow-67781

12/04/2018, 1:08 AM
Hey anyone know why this happens?
Copy code
Plan apply failed: unable to fetch resource description for extensions/v1beta1: Unauthorized
c

creamy-potato-29402

12/04/2018, 1:18 AM
Do you have rbac set correctly?
d

damp-pillow-67781

12/04/2018, 6:19 PM
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

creamy-potato-29402

12/04/2018, 6:44 PM
@damp-pillow-67781 can you paste the whole error?
d

damp-pillow-67781

12/04/2018, 6:45 PM
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

creamy-potato-29402

12/04/2018, 6:45 PM
I mean the whole diagnostics output.
d

damp-pillow-67781

12/04/2018, 8:00 PM
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

creamy-potato-29402

12/05/2018, 2:29 AM
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})