Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing tags on existing AWS VPC subnets in kops 1.5.3 #2388

Closed
igoratencompass opened this issue Apr 20, 2017 · 6 comments
Closed

Missing tags on existing AWS VPC subnets in kops 1.5.3 #2388

igoratencompass opened this issue Apr 20, 2017 · 6 comments

Comments

@igoratencompass
Copy link

igoratencompass commented Apr 20, 2017

When creating k8s cluster with kops-1.5.3 in existing AWS VPC the Name and KubernetesCluster tags are not being applied to the subnets. Apparently their values should be something like:

    KubernetesCluster = "<cluster-name>"
    Name              = "eu-west-1a.<cluster-name>"

Additional to this, a care should be taken for the cases where one or both of these tags already exist for the subnet (especially the Name one which is pretty common). Maybe more unique tag keys should be considered to avoid any clash with existing ones. I don't think overwriting existing ones is the correct action to take as people might have some VPC operations depending on the existing subnet tag. I apologize if this is already dealt with in the code.

@kenden
Copy link
Contributor

kenden commented Apr 20, 2017

This is a possible duplicate of #1142 (or it's root cause, so fixing one fixes both)

@onlydole
Copy link
Member

onlydole commented Jun 9, 2017

I am also seeing this issue and had to manually tag my subnets to ensure that ELBs were created within AWS.

@kenden
Copy link
Contributor

kenden commented Jun 13, 2017

I just created a new cluster with Kops 1.6.1 without any tags on the existing subnets and my ELB registered to all subnets. The ELB has the tags:
KubernetesCluster: k8s.prod.eu-central-1.redacted.net
kubernetes.io/cluster/k8s.prod.eu-central-1.redacted.net: owned
This new tag kubernetes.io/cluster/..., from here seems to have helped

Edit 2017-07.19:
It is not correct. Subnets must have a tag in order to be added to the ELB, with Kops/Kubernetes 1.6.2.
With the tag:
kubernetes.io/cluster/k8s.prod.eu-central-1.redacted.net: owned, the subnets are added.
See related Kops ticket comment: #1142 (comment)

@adrianmkng
Copy link

I've just created a K8 cluster using kops 1.6.0 on my subnets which had no tags. No additional tags were applied to my subnets after have deploying the K8 cluster on it.
Next I created a LoadBalancer service type on the K8 cluster I could see it failed to register all the subnets to my ELB.
As I understand it, the existing subnets should have the tags kubernetes.io/cluster/... : shared applied to it so that the ELB is aware that the subnets are being managed by kops. Is this understanding correct?

@kenden
Copy link
Contributor

kenden commented Jul 19, 2017

@adrianmkng yes that's correct. My last comment was incorrect unfortunately. I edited it.
I think we should close either this ticket or #1142.

They are both related to kubernetes/kubernetes#42957 and kubernetes/kubernetes#42963

@geojaz
Copy link
Member

geojaz commented Oct 26, 2017

Closed in #3682

@geojaz geojaz closed this as completed Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants