-
Notifications
You must be signed in to change notification settings - Fork 192
prevents metric-server from taking ownership of kube-system namespace. #3596
prevents metric-server from taking ownership of kube-system namespace. #3596
Conversation
Cluster Generation A/B Results: |
Codecov Report
@@ Coverage Diff @@
## main #3596 +/- ##
==========================================
- Coverage 46.93% 46.03% -0.91%
==========================================
Files 402 427 +25
Lines 40203 41754 +1551
==========================================
+ Hits 18869 19221 +352
- Misses 19582 20765 +1183
- Partials 1752 1768 +16
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
We should merge this one. Can we rebase it @adduarte ? |
75c65e6
to
e91b028
Compare
Cluster Generation A/B Results: |
@adduarte Could you please just update this statement in the description? they will be reverted back when metric-server app is reconciled by addons-manager |
fixes: 3595
What this PR does / why we need it
prevents metric-server app on administrator cluster from taking ownership of kube-system namespace.
The configuration for the metrics-server which is deployed to the administration server uses the default
("createNamespace: true") when it is to be deployed on the "kube-system" namespace.
Using "createNamespace: true" causes kapp-controller to take ownership of the namespace and assign it to the metrics-server app.
The result is that if a admin user makes any changes to the "kube-system" namespace, they will be reverted back when metric-server app is reconciled by kapp-controller. It also adds kapp.k14s.io annotations and labels to the namespace which can interfere with control-plane operations. For example, when the metric-server app is deleted, the system will try to delete kube-system namespace which is not allowed, resulting in a problem.
Which issue(s) this PR fixes
Fixes # 3595
Describe testing done for PR
Tested by editing the ${CLUSTERNAME}-vc-metrics-server-addon
Release note
Additional information
Special notes for your reviewer