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

[Existing VPC] : Tag subnets as 'owned' #241

Open
wiquan opened this issue Jan 18, 2019 · 3 comments
Open

[Existing VPC] : Tag subnets as 'owned' #241

wiquan opened this issue Jan 18, 2019 · 3 comments

Comments

@wiquan
Copy link

wiquan commented Jan 18, 2019

What steps did you take and what happened:
With a pristine new stack in an existing VPC, much of the stack materializes, but some tags are missing on subnets such that any attempt to deploy something via Helm (eg. NextSteps:Wordpress ).

With an existing VPC and existing Subnets, you will hit:

because there are tags that are missing.
Thus, it would be good to either add the tags to the existing subnets or WARN users that they will be getting a situation like this:

# External IP is wedged as pending because tags are missing on subnets
$ kubectl get svc --namespace varmywordpress wordpress-wordpress
NAME                  TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)                      AGE
wordpress-wordpress   LoadBalancer   10.104.13.150   <pending>     80:30789/TCP,443:32346/TCP   8m

What did you expect to happen:
Expected the External IP to be replaced with an AWS resource.
This happens if the template adds AWS Tags to the provided subnets for the stack being created.

Key= kubernetes.io/cluster/<<STACKNAME>>
Value= owned
$ kubectl get svc --namespace varmywordpress wordpress-wordpress
NAME                  TYPE           CLUSTER-IP     EXTERNAL-IP        PORT(S)                      AGE
wordpress-wordpress   LoadBalancer   10.100.207.5   abc12141d1b53...   80:31683/TCP,443:32357/TCP   24s

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):
@wiquan
Copy link
Author

wiquan commented Jan 23, 2019

Subnets can also be tagged as 'shared' (instead of owned).
That works better for me, since my single VPC has multiple stacks deploying into the same subnets.

@timothysc
Copy link
Member

So we might totally revamp this once we long term switch to cluster-api implementation, under the hood.

@timothysc
Copy link
Member

/assign @chuckha @vincepri

@vincepri vincepri removed their assignment Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants