kubernetes.io/cluster/<name>=shared tag being added to NAT Gateway that isn't managed by kops #5233
Labels
lifecycle/rotten
Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Using kops 1.9.0 in AWS, I am creating a cluster where kops is allowed to create the subnets, but I specify pre-existing NAT gateways to use, like this:
The NAT gateways are maintained outside of kops by a separate terraform. kops ends up adding a
kubernetes.io/cluster/<name>=shared
tag to these NAT gateways, which makes terraform want to delete the tags since it didn't create them. This feels very similar to #4265 I logged a few months ago where kops was tagging VPCs it didn't own, and in that case the decision was made to stop tagging VPCs that were not managed by kops. This feels very similar to me. It looks like #4767 was the reason why the shared tags were added to NAT gateways. It seems like it might be better to not tag them at all if kops didn't create them, and then also assume that they can't be deleted later since they aren't tagged as being owned (which, as was mentioned on #4767, is the general assumption now).The text was updated successfully, but these errors were encountered: