EKS - aws-ebs-csi-driver add-on advanced configuration problem arisen suddenly

0

Hi, I am using the aws-ebs-csi-driver add-on, and while it used to work so far, suddenly I noticed that this plugin was in degraded state (without me doing anything), then I could not upgrade its version, until I removed this configuration, and now I cannot add it back. I get the below error when I try to input advanced configuration below:

UnsupportedAddonModification Amazon EKS was unable to complete the addon operation. The configuration values provided are invalid.

Here is my JSON:

{
	"controller": {
		"nodeSelector": {
			"kubernetes.io/os": "linux",
			"aaaaa": "xxx-yyy-zzz",
			"some_other_key": "abcd"
		}
	}
}

which seems valid, according to the schema I get from

aws eks describe-addon-configuration --addon-name aws-ebs-csi-driver --addon-version v1.17.0-eksbuild.1 

I also tried without whitespace, but same result. Also tried in YAML format, nothing, same error.

Has something changed? Some new bug? It doesn't make sense really.

babis
已提问 1 年前515 查看次数
1 回答
1

The above is due to the fact that "kubernetes.io/os": "linux" is included the node selector. This key/value is already hardcoded into the node selector used in the add-on. If you remove "kubernetes.io/os": "linux", it should work fine, and they will still get that node selector since it's built into the add-on anyways.

已回答 1 年前
  • This has worked, thank you for letting me know about this. I think it's a bit strange, although I get why this would need to happen. The error message could be more descriptive so it's easier to spot those small things. Would be good to document this note too (if not already and just missed it). Thanks again!

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则