Fix issues with multi cluster environments #66
Comments
The hub came up as expected - I then changed my currentCluster to dev-cluster1 (my cluster defined during init) and ran
|
I've tried setting up the ssh tunnel manually using the following command: |
Yes the tunnel is connecting (lookup the Basically the problem is tarmak is connecting to a wrong bastion node (you are still missing the output where it says tunnel started (3 times)) This tunnels need to be setup against the bastion in the hub and not the bastion in the cluster, as there is no bastion per cluster there is only one per environment and that is the on int hub |
How can I tell tarmak to use the correct bastion? |
The previous issue was fixed by changing the path that terraform uses to look for ssh config when running in a multi-cluster architecture |
I'm not seeing errors such as the follow:
Is this the expected error at this point? |
We need to tag the public subnet(s) so Kubernetes knows where to put loadbalancers - the following comment explains it nicely |
The Kubernetes AWS cloud provider determines its clusterID by looking at the instance tag keys with prefix "kubernetes.io/cluster/" (or the legacy prefix "KubernetesCluster"). The clusterID is set to be the rest of the tag key (or to the tag value for legacy). When creating an ELB for a cluster, only subnets that have a tag key of "kubernetes.io/cluster/CLUSTERID" and "kubernetes.io/role/elb" are considered. To support ELBs for multi cluster environments, we must therefore minimally set instance tags with a key of "kubernetes.io/cluster/CLUSTERID" on all instances running the cloud controller-manager and tag all subnets we want to house the ELB in with keys of "kubernetes.io/cluster/CLUSTERID" and "kubernetes.io/role/elb" |
When running a multi-cluster environment in an existing VPC, I get the following error when applying the first cluster (after spinning up the hub):
|
Automatic merge from submit-queue. 66 fix multi cluster envs **What this PR does / why we need it**: Multi cluster environements currently do not work with Tarmak. This PR fixes this by tagging subnets and instances appropriately so that clusters can function properly **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #66 **Special notes for your reviewer**: **Release note**: ```release-note Fix multi cluster environments by supporting multiple clusters in a single VPC ```
/kind bug
What happened:
Multi cluster environments are currently failing on AWS
What you expected to happen:
A multi cluster environment comes with a hub and n cluster. Currently generated terraform code is not able to properly create clusters
The text was updated successfully, but these errors were encountered: