Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change ippool agent pod's initcontainer's imagepullpolicy to ifn… #37

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

zha0jf
Copy link

@zha0jf zha0jf commented Nov 6, 2024

…otpresent

IMPORTANT: Please do not create a Pull Request without creating an issue first.

Problem:
vm-dhcp-controller dhcpserver-agent Pod Fails to Start in Air-Gapped Environment Due to ImagePullPolicy 'Always' Setting,The initialization container is stuck in the “pull image” state.

Solution:
change the imagepullpolicy of the initialization container "ip-setter" to "IfNotPresent"。

Related Issue:
harvester/issues/6942

Test plan:

Copy link
Member

@starbops starbops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Just for the record: given that in the air-gapped environment, the PR fixes when users manually import the busybox container image to the nodes, kubelet will no longer make further requests to external registries to check for the digest. However, it's still an issue for harvester-vm-dhcp-agent running in air-gapped environments (without any private registry set up) because we don't pack the container image docker.io/library/busybox:latest in the ISO image initially.

@starbops starbops merged commit 5650e2d into harvester:main Nov 6, 2024
6 checks passed
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.

2 participants