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.26] - prefer-bundled-bin flag cannot be set via config.yaml.d #7395

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

@bguzman-3pillar
Copy link

Validated on commit 743a0dd

$ k3s -v
k3s version v1.26.4+k3s-743a0dd8 (743a0dd8)
go version go1.19.8

Environment Details

Infrastructure

  • Cloud
  • Hosted

Node(s) CPU architecture, OS, and Version:

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Cluster Configuration:

1 server

Config.yaml:

$ cat config.yaml 
write-kubeconfig-mode: 644
debug: true
token: test
protect-kernel-defaults: true
cluster-init: true

Additional files

config.yaml.d/test.yaml
$ cat test.yaml 
prefer-bundled-bin: true

Testing Steps

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

Validation Results:

$ kubectl get node,pod -A
NAME                    STATUS   ROLES                       AGE   VERSION
node/ip-172-31-45-170   Ready    control-plane,etcd,master   17m   v1.26.4+k3s-743a0dd8

NAMESPACE     NAME                                          READY   STATUS      RESTARTS   AGE
kube-system   pod/coredns-59b4f5bbd5-tnjjj                  1/1     Running     0          17m
kube-system   pod/helm-install-traefik-bld65                0/1     Completed   1          17m
kube-system   pod/helm-install-traefik-crd-fmdf8            0/1     Completed   0          17m
kube-system   pod/local-path-provisioner-76d776f6f9-k5w68   1/1     Running     0          17m
kube-system   pod/metrics-server-7b67f64457-47qvj           1/1     Running     0          17m
kube-system   pod/svclb-traefik-11275b55-7zmhx              2/2     Running     0          16m
kube-system   pod/traefik-56b8c5fb5c-n44wp                  1/1     Running     0          16m


$ sudo cat /proc/${ID}/environ | xargs -n1 -0 echo | grep PATH 
PATH=/var/lib/rancher/k3s/data/d1651d28281e70b5718c1cc6f9a877e762f02a785616d88451dda26a0f8a317b/bin:/var/lib/rancher/k3s/data/d1651d28281e70b5718c1cc6f9a877e762f02a785616d88451dda26a0f8a317b/bin/aux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

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