{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kops/issues/2214","repository_url":"https://api.github.com/repos/kubernetes/kops","labels_url":"https://api.github.com/repos/kubernetes/kops/issues/2214/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kops/issues/2214/comments","events_url":"https://api.github.com/repos/kubernetes/kops/issues/2214/events","html_url":"https://github.com/kubernetes/kops/issues/2214","id":217601806,"node_id":"MDU6SXNzdWUyMTc2MDE4MDY=","number":2214,"title":"Request to allow specifying extra routes to add to kops subnets to point to pre-existing VPN gateway","user":{"login":"keiths-osc","id":3358621,"node_id":"MDQ6VXNlcjMzNTg2MjE=","avatar_url":"https://avatars2.githubusercontent.com/u/3358621?v=4","gravatar_id":"","url":"https://api.github.com/users/keiths-osc","html_url":"https://github.com/keiths-osc","followers_url":"https://api.github.com/users/keiths-osc/followers","following_url":"https://api.github.com/users/keiths-osc/following{/other_user}","gists_url":"https://api.github.com/users/keiths-osc/gists{/gist_id}","starred_url":"https://api.github.com/users/keiths-osc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keiths-osc/subscriptions","organizations_url":"https://api.github.com/users/keiths-osc/orgs","repos_url":"https://api.github.com/users/keiths-osc/repos","events_url":"https://api.github.com/users/keiths-osc/events{/privacy}","received_events_url":"https://api.github.com/users/keiths-osc/received_events","type":"User","site_admin":false},"labels":[{"id":498770884,"node_id":"MDU6TGFiZWw0OTg3NzA4ODQ=","url":"https://api.github.com/repos/kubernetes/kops/labels/Feature%20Request","name":"Feature Request","color":"bfd4f2","default":false},{"id":469783167,"node_id":"MDU6TGFiZWw0Njk3ODMxNjc=","url":"https://api.github.com/repos/kubernetes/kops/labels/area/networking","name":"area/networking","color":"c5def5","default":false},{"id":778139589,"node_id":"MDU6TGFiZWw3NzgxMzk1ODk=","url":"https://api.github.com/repos/kubernetes/kops/labels/lifecycle/frozen","name":"lifecycle/frozen","color":"d3e2f0","default":false}],"state":"open","locked":false,"assignee":{"login":"chrislovecnm","id":335402,"node_id":"MDQ6VXNlcjMzNTQwMg==","avatar_url":"https://avatars2.githubusercontent.com/u/335402?v=4","gravatar_id":"","url":"https://api.github.com/users/chrislovecnm","html_url":"https://github.com/chrislovecnm","followers_url":"https://api.github.com/users/chrislovecnm/followers","following_url":"https://api.github.com/users/chrislovecnm/following{/other_user}","gists_url":"https://api.github.com/users/chrislovecnm/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislovecnm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislovecnm/subscriptions","organizations_url":"https://api.github.com/users/chrislovecnm/orgs","repos_url":"https://api.github.com/users/chrislovecnm/repos","events_url":"https://api.github.com/users/chrislovecnm/events{/privacy}","received_events_url":"https://api.github.com/users/chrislovecnm/received_events","type":"User","site_admin":false},"assignees":[{"login":"chrislovecnm","id":335402,"node_id":"MDQ6VXNlcjMzNTQwMg==","avatar_url":"https://avatars2.githubusercontent.com/u/335402?v=4","gravatar_id":"","url":"https://api.github.com/users/chrislovecnm","html_url":"https://github.com/chrislovecnm","followers_url":"https://api.github.com/users/chrislovecnm/followers","following_url":"https://api.github.com/users/chrislovecnm/following{/other_user}","gists_url":"https://api.github.com/users/chrislovecnm/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislovecnm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislovecnm/subscriptions","organizations_url":"https://api.github.com/users/chrislovecnm/orgs","repos_url":"https://api.github.com/users/chrislovecnm/repos","events_url":"https://api.github.com/users/chrislovecnm/events{/privacy}","received_events_url":"https://api.github.com/users/chrislovecnm/received_events","type":"User","site_admin":false}],"milestone":null,"comments":24,"created_at":"2017-03-28T15:35:39Z","updated_at":"2018-08-22T11:18:53Z","closed_at":null,"author_association":"NONE","body":"We have a pre-existing VPC in AWS with a VPN connection between our company's network and the VPC.  I have been able to successfully create a completely private Kubernetes cluster with kops by ensuring that I:\r\n\r\n- set the api load balancer type to `Internal` in the kops cluster configuration\r\n- set the dns, masters, and nodes topology to `private` in the kops cluster configuration (via flags to `kops create cluster`)\r\n- do not pass the `--bastion` flag to `kops create cluster` so a bastion is not created\r\n\r\n I found in the [run_in_existing_vpc document](https://github.com/kubernetes/kops/blob/master/docs/run_in_existing_vpc.md) that I can use pre-existing subnets in the cluster configuration.  I gave this a try.  The route tables for the subnets I made have routes that point to our VPN gateway.  The kops utility subnets share a route table that points to an Internet gateway for the default route, and the private subnets each have a route table that points to a NAT gateway for the default route.  This all appears to have worked well.  I have been able to create `LoadBalancer` type Kubernetes services configured so that they create private load balancers, and I can access the services via the VPN.  (Note I did make sure to add the subnet tags mentioned by [this issue](https://github.com/kubernetes/kops/issues/2011) to ensure the load balancer ends up in one of the private subnets).\r\n\r\nRather than creating the Kubernetes resources in our pre-existing subnets, we would prefer to keep the kops cluster separated in its own dedicated subnets that are ideally managed by kops.  It would be nice if kops could create the subnets and their corresponding route tables with the VPN gateway routes added.  The [run_in_existing_vpc document](https://github.com/kubernetes/kops/blob/master/docs/run_in_existing_vpc.md) shows how to have kops create the subnets for you but use pre-existing NAT gateways by specifying an `egress` setting on the private subnets.  I gave this a try, and kops created all the subnets for me in our existing VPC and pointed the route tables to the NAT gateways I specified.  I then manually added the VPN gateway routes to both the utility and private subnet route tables that kops created (and the tags mentioned in [this issue](https://github.com/kubernetes/kops/issues/2011)) and found that all seems to work fine.  Without the VPN gateway routes, I can't communicate with the masters or nodes over the VPN because the networking on the AWS side doesn't know how to route the response back to me.\r\n\r\nSo, in short, this is a request to add the ability to specify one or more extra routes to add to the subnets created by kops to point them to a pre-existing VPN gateway (while simultaneously allowing for specifying a pre-existing NAT gateway as you can today)."},"comment":{"url":"https://api.github.com/repos/kubernetes/kops/issues/comments/414998545","html_url":"https://github.com/kubernetes/kops/issues/2214#issuecomment-414998545","issue_url":"https://api.github.com/repos/kubernetes/kops/issues/2214","id":414998545,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDk5ODU0NQ==","user":{"login":"ms4720","id":37317,"node_id":"MDQ6VXNlcjM3MzE3","avatar_url":"https://avatars2.githubusercontent.com/u/37317?v=4","gravatar_id":"","url":"https://api.github.com/users/ms4720","html_url":"https://github.com/ms4720","followers_url":"https://api.github.com/users/ms4720/followers","following_url":"https://api.github.com/users/ms4720/following{/other_user}","gists_url":"https://api.github.com/users/ms4720/gists{/gist_id}","starred_url":"https://api.github.com/users/ms4720/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ms4720/subscriptions","organizations_url":"https://api.github.com/users/ms4720/orgs","repos_url":"https://api.github.com/users/ms4720/repos","events_url":"https://api.github.com/users/ms4720/events{/privacy}","received_events_url":"https://api.github.com/users/ms4720/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T11:18:53Z","updated_at":"2018-08-22T11:18:53Z","author_association":"CONTRIBUTOR","body":"aws Route Propagation vpc->route tables -> select a table -> pick tab \"Route Propagation\" and enable the option fixed my problem"}}
{"actor":{"display_login":"ms4720"}}