Skip to content

Commit d4e6c15

Browse files
code-egbryantbiggs
andauthored
chore: Update FAQ for security group tagging (#2695)
* Add aws_eks_addons.before_compute to the cluster_addons output * update FAQ docs for custom networking * Rephrasing --------- Co-authored-by: Bryant Biggs <[email protected]>
1 parent de14031 commit d4e6c15

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

docs/faq.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,16 @@ By default, EKS creates a cluster primary security group that is created outside
2424
attach_cluster_primary_security_group = true # default is false
2525
```
2626

27-
2. If you want to use the cluster primary security group, you can disable the tag passed to the node security group by overriding the tag expected value like:
28-
29-
```hcl
30-
attach_cluster_primary_security_group = true # default is false
31-
32-
node_security_group_tags = {
33-
"kubernetes.io/cluster/<CLUSTER_NAME>" = null # or any other value other than "owned"
34-
}
35-
```
36-
37-
3. By overriding the tag expected value on the cluster primary security group like:
38-
39-
```hcl
40-
attach_cluster_primary_security_group = true # default is false
41-
42-
cluster_tags = {
43-
"kubernetes.io/cluster/<CLUSTER_NAME>" = null # or any other value other than "owned"
44-
}
45-
```
46-
47-
4. By not attaching the cluster primary security group. The cluster primary security group has quite broad access and the module has instead provided a security group with the minimum amount of access to launch an empty EKS cluster successfully and users are encouraged to open up access when necessary to support their workload.
27+
2. By not attaching the cluster primary security group. The cluster primary security group has quite broad access and the module has instead provided a security group with the minimum amount of access to launch an empty EKS cluster successfully and users are encouraged to open up access when necessary to support their workload.
4828

4929
```hcl
5030
attach_cluster_primary_security_group = false # this is the default for the module
5131
```
5232

5333
In theory, if you are attaching the cluster primary security group, you shouldn't need to use the shared node security group created by the module. However, this is left up to users to decide for their requirements and use case.
5434

35+
If you choose to use [Custom Networking](https://docs.aws.amazon.com/eks/latest/userguide/cni-custom-network.html), make sure to only attach the security groups matching your choice above in your ENIConfig resources. This will ensure you avoid redundant tags.
36+
5537
### Why are nodes not being registered?
5638

5739
Nodes not being able to register with the EKS control plane is generally due to networking mis-configurations.

0 commit comments

Comments
 (0)