-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
unknown field "permissionsBoundary" under add-ons section while trying to create cluster via config file. #3413
Comments
@cooldudesam what version of eksctl are you using? This only just got added in |
Thanks for quick reply! I was using 0.38.0 eksctl version. I installed the latest 0.40.0 eksctl version and this time i did not see the issue unknown field "permissionsBoundary" under add-ons section. But the cluster created and add-on stacks got completed succesfully but in the below stdout i see it threw an error about vpc-cni version and i dont see the add-on being added under the EKS cluster section. Since the below stdout failed and that could be the reason why it did not create any serviceaccount for vpc-cni and annotate it? OR do i have to explicitly add serviceaccount section in my clusterconfig file? Let me try removing the vpc-cni version and re-try again.
|
Thanks much! After removing the version field i was able to create the cluster along with the add-on and it did create service account as well. I can see the add-on being added in EKS console.
I have one question - If i have an existing eksctl cluster created using the config file where the add-on is not enabled. Could i just update the config file with setting OIDC to "true" and adding add-ons section and just upgrade the cluster. Would that take care of creating the OIDC Identity provider and service account and everything. |
No, we don't currently have a way of updating the cluster spec as a whole, we have a issue open for adding support for At the moment you would need to run |
Thanks for the response. Having support for eksctl apply similar to kubectl apply would help in updating the configuration since we are applying using the config file to provision cluster and managed nodegroups. Could I just update the cluster config.yaml file with the add-on specifications, including the permission boundary spec something like this iam: addons:
I have used the below commands to create add-on and enable OIDC provider but passing the updated cluster config file. eksclt utils associate-iam-oidc-provider --config-file=cluster_config.yaml Thanks for all the help! |
What were you trying to accomplish?
I want to enable add-ons via eksctl while provisiong cluster. Right now since only vpc-cni is available from AWS would like to test it add-on so, eksctl creates this add-on, IAM role and service account to annotate it under kube-system namespace.
What happened?
Iam using the filed permissionsBoundary under add-ons section and as per eksctl schema doc it says you can add permissionsBoundary under addons section but when i do that i get below error
eksctl schema https://eksctl.io/usage/schema/
Here is how iam giving this in my cluster config file
Is anyone facing the similar issue? Can we get this issue fixed so we can use the feature in the addons section?
The text was updated successfully, but these errors were encountered: