From 8c5f2e3362f8e84fe979857e77921b8adf3217da Mon Sep 17 00:00:00 2001 From: "alex.hsu" Date: Fri, 4 Oct 2024 18:10:55 +0800 Subject: [PATCH] add comments for hostnetowrk --- templates/cloud-provider/aws-ccm.yaml.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/cloud-provider/aws-ccm.yaml.tpl b/templates/cloud-provider/aws-ccm.yaml.tpl index 748cb8e..5238f63 100644 --- a/templates/cloud-provider/aws-ccm.yaml.tpl +++ b/templates/cloud-provider/aws-ccm.yaml.tpl @@ -158,6 +158,8 @@ spec: resources: requests: cpu: 200m + # We speculatively set hostNetwork to true for the AWS CCM to connect to the AWS API + # https://shazi.info/amazon-eks-pod-%E5%AD%98%E5%8F%96-imdsv2-%E7%95%B0%E5%B8%B8%E7%B7%A9%E6%85%A2%E8%99%95%E7%90%86/ hostNetwork: true nodeSelector: node-role.kubernetes.io/master: ""