1

With the instruction https://docs.aws.amazon.com/eks/latest/userguide/worker.html it is possible to bring up Kube cluster worker nodes. I wanted the worker node not to have public ip. I don't see Amazon gives me that option as when running the cloudformation script. How can I have option not to have public ip on worker nodes

3 Answers 3

1

You would normally set this up ahead of time in the Subnet rather than doing it per machine. You can set Auto-assign public IPv4 address to false in the subnets you are using the for the worker instances.

5
  • Thank you for your response. I just checked the configuration Auto-assign public IPv4 is set to "no" . I was under impression that something we can do in the cloud formation .
    – R-JANA
    Nov 27, 2018 at 18:03
  • What you see is what you get. You can copy Amazon's cloudformation template and make your own modifications to it, but it's not something they exposed.
    – coderanger
    Nov 27, 2018 at 18:05
  • Yep, I was looking at the file amazon-eks.s3-us-west-2.amazonaws.com/cloudformation/2018-11-07/… and also at github.com/awslabs/amazon-eks-ami/blob/master/… . I did see a line NodeLaunchConfig: Type: AWS::AutoScaling::LaunchConfiguration Properties: AssociatePublicIpAddress: 'true' I am still trying to figure out the dependency to this file
    – R-JANA
    Nov 27, 2018 at 19:16
  • Yup , I Worked by changing the script and uploading it in S3
    – R-JANA
    Nov 27, 2018 at 20:48
  • Ahh, if they specifically set it to true, that also explains why setting it at the subnet level didn’t work too.
    – coderanger
    Nov 28, 2018 at 6:53
0

You need to set this behaviour inside your group node template (Cloudformation template).

  NodeLaunchConfig:
    Type: AWS::AutoScaling::LaunchConfiguration
    Properties:
      AssociatePublicIpAddress: false
0

As of 2020/03/09, this is not possible.

See this thread.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.