<p>In <a href="https://www.eksworkshop.com/beginner/160_advanced-networking/secondary_cidr/prerequisites/" rel="nofollow noreferrer">tutorial</a> of AWS EKS, for adding secondary CIDRs to the new VPC, We should add following tags to the new subnets</p>
<ol>
<li>eksctl.cluster.k8s.io/v1alpha1/cluster-name</li>
<li>kubernetes.io/cluster/eksworkshop-eksctl</li>
<li>kubernetes.io/role/elb</li>
</ol>
<p>I know tag2 and tag3 are for discovery by load balancers or ingress from this <a href="https://aws.amazon.com/premiumsupport/knowledge-center/eks-vpc-subnet-discovery/" rel="nofollow noreferrer">site</a>, but <strong>What is tag1 &quot;eksctl.cluster.k8s.io/v1alpha1/cluster-name&quot; for?</strong></p>

Jess Chen
<p>Apparently this tag shows the cluster name.<br />
The tag name is defined below:<br />
<a href="https://github.com/weaveworks/eksctl/blob/release-0.25/pkg/apis/eksctl.io/v1alpha5/types.go#L168-L169" rel="nofollow noreferrer">https://github.com/weaveworks/eksctl/blob/release-0.25/pkg/apis/eksctl.io/v1alpha5/types.go#L168-L169</a>.</p>
<p>And for example, the defined constant is used by the function of getting a cluster name.<br />
<a href="https://github.com/weaveworks/eksctl/blob/release-0.25/pkg/cfn/manager/cluster.go#L189-L209" rel="nofollow noreferrer">https://github.com/weaveworks/eksctl/blob/release-0.25/pkg/cfn/manager/cluster.go#L189-L209</a></p>
<p>So maybe the eksctl judge a cluster name from an &quot;eksctl.cluster.k8s.io/v1alpha1/cluster-name&quot; tag.</p>
