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 年前檢視次數 514 次
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!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南