Closed DirkTheDaring closed 1 month ago
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: DirkTheDaring Once this PR has been reviewed and has the lgtm label, please assign vannten for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Hi @DirkTheDaring. Thanks for your PR.
I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
I don't think we want to support this in Kubespray, it's not really in scope.
/ok-to-test
Fine with me, fix: works for years on my proxmox environment. I have always maintained it.
Adding label do-not-merge/contains-merge-commits
because PR contains merge commits, which are not allowed in this repository.
Use git rebase
to reapply your commits on top of the target branch. Detailed instructions for doing so can be found here.
What type of PR is this?
What this PR does / why we need it: In a test lab environment with limited resources, one can save some resources if you run etcds in LXC containers.
Using an LXC container causes kubespray to fail, as it assumes that etcds run on a (virtual) machine. It tries setting swap, and an LXC container does not allow to chown the etcd binary in the standard setting.
This patch introduces the ansible_virtualization_type variable, similar to running normal ansible, which allows you to determine if you run in a LXC container or else.
Then, it makes the necessary adjustments to solve the above issues for an LXC container. Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: