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

[Release-1.24] - prefer-bundled-bin flag cannot be set via config.yaml.d #7405

Closed
dereknola opened this issue May 2, 2023 · 1 comment
Closed
Assignees
Milestone

Comments

@dereknola
Copy link
Contributor

Backport fix for prefer-bundled-bin flag cannot be set via config.yaml.d

@fmoral2
Copy link
Contributor

fmoral2 commented May 8, 2023

Validated on Version:

Environment Details

Infrastructure
Cloud EC2 instance

Node(s) CPU architecture, OS, and Version:
Ubuntu 22.04
CENTOS 7
SLES 15 SP4

Cluster Configuration:
1 node

Config.yaml 1 server node :

write-kubeconfig-mode: 644
token: test
selinux: true
protect-kernel-defaults: true
cluster-init: true

Config.yaml.d/test.yaml :

prefer-bundled-bin: true

Steps to validate the fix:

  1. Create 1 node cluster
  2. Add prefer-bundled-bin: true config on .d file => Config.yaml.d/test.yaml
  3. Get ID for k3s var envs process
    • $ ID=$(pgrep k3s-server)
    • $ sudo cat /proc/${ID}/environ | xargs -n1 -0 echo | grep PATH
  4. Check the path order

Validation Results:

             
~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"

$ ID=$(pgrep k3s-server)
$ sudo cat /proc/${ID}/environ | xargs -n1 -0 echo | grep PATH

PATH=/var/lib/rancher/k3s/data/62e3fbd13be6245acd26ffc79e121a32c4aa56bd23a02f76c67c8e9e5a5ec7df/bin:/var/lib/rancher/k3s/data/62e3fbd13be6245acd26ffc79e121a32c4aa56bd23a02f76c67c8e9e5a5ec7df/bin/aux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin








@fmoral2 fmoral2 closed this as completed May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants