https://pulumi.com logo
Title
c

cuddly-carpenter-20638

04/30/2021, 12:05 AM
Hi, all šŸ‘‹ Complete noob to pulumi. I have an existing EKS k8s cluster that I’m trying to run the https://www.pulumi.com/docs/get-started/kubernetes/ tutorial against. I keep getting the below error:
Updating (dev):
     Type                              Name                Status                  Info
     pulumi:pulumi:Stack               pulumi-starter-dev  **failed**              1 error
 +   └─ kubernetes:apps/v1:Deployment  nginx               **creating failed**     1 error
 
Diagnostics:
  pulumi:pulumi:Stack (pulumi-starter-dev):
    error: update failed
 
  kubernetes:apps/v1:Deployment (nginx):
    error: resource nginx-uzv9l9j4 was not successfully created by the Kubernetes API server : deployments.apps is forbidden: User "me" cannot create resource "deployments" in API group "apps" in the namespace "default"
c

colossal-australia-65039

04/30/2021, 12:07 AM
looks like the kube context you're using has limited permissions to the k8s cluster you are deploying against. what do you see when you just run
kubectl apply -f <https://k8s.io/examples/controllers/nginx-deployment.yaml>
from your terminal?