Skip to content

Use a custom entrypoint script for k8s container nodes - #2289

Open
katiewasnothere wants to merge 1 commit into
apple:mainfrom
katiewasnothere:k8s_custom_entrypoint_script
Open

katiewasnothere wants to merge 1 commit into
apple:mainfrom
katiewasnothere:k8s_custom_entrypoint_script

Conversation

@katiewasnothere

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix

Motivation and Context

This PR eliminates the use of the default entrypoint script in the kindest/node image, which has logic specific to kind's environment. For example, the kind entrypoint script has the function fix_machine_id() which is not necessary for apple/container since each cluster node runs in its own microVM, per the architectural design of container.

From my investigation, the main risks of this change are in keeping the list of files that need to be updated on a restart up to date over time. While this is a meaningful concern, considering that most of kind's entrypoint script code is irrelevant and possibly even harmful for the apple/container environment today, this is a fair tradeoff.

This PR additionally fixes #2156 by handling certificate update and IP changes on a restart specifically for our environment. With the kind entrypoint script, many of the files that we depend on elsewhere in this repo such as /root/.kube/config were not properly updated.

Testing

  • Tested locally
  • Added/updated tests

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
@github-actions

Copy link
Copy Markdown

Code Coverage

Tier Line Coverage
Unit 24.82%
Integration 66.83%
Combined 76.24%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kubernetes control-plane restart fails after node IP rotation

1 participant