hashicorp / learn-consul-kubernetes

Mozilla Public License 2.0
32 stars 37 forks source link

Admin Partition: Update ClusterRoleBinding apiVersion #81

Closed aimeeu closed 3 months ago

aimeeu commented 4 months ago

...in eks-admin-service-account.yaml

I was following the admin partition tutorial that uses tag v0.0.19.

When deploying the infrastructure using terraform apply -auto-approve, Terraform throws an error:

Error running command 'kubectl apply -f eks-admin-service-account.yaml': exit status 1. Output: serviceaccount/eks-admin created
│ error: resource mapping not found for name: "eks-admin" namespace: "" from "eks-admin-service-account.yaml": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
│ ensure CRDs are installed first

Update apiVersion from beta to v1 solves this problem.