Skip to content

Early Boot Config, apiclient route for elastic load balancer #1579

Discussion options

You must be logged in to vote

So we made progress on a workaround with a awscli+alpine image and using the bootstrap-containers setting. Here goes:

In ECR we saved a new alpine image with the following:

FROM alpine
RUN apk add aws-cli cloud-utils-ec2metadata
ENTRYPOINT ["sh", "/.bottlerocket/bootstrap-containers/current/user-data"]

Our new CloudFormation portion now looks like this:

        userData: !Base64
          'Fn::Join':
            - ''
            - - 'Fn::Sub': |-
                  [settings.kubernetes]
                  cluster-name = "${MyStackName}"
                  api-server = "${Cluster.Endpoint}"
                  cluster-certificate = "${Cluster.CertificateAuthorityData}"
                  [setti…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jhaynes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1570 on May 17, 2021 20:55.