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.32] - kube-controller-manager pod fails to be created with kube-controller-manager-extra-mount flag #7583

Closed
brandond opened this issue Jan 13, 2025 · 1 comment
Assignees

Comments

@brandond
Copy link
Member

Backport fix for kube-controller-manager pod fails to be created with kube-controller-manager-extra-mount flag

@ShylajaDevadiga
Copy link
Contributor

Validated on rke2 version v1.32.1-rc2+rke2r1

Environment Details

Infrastructure
Cloud EC2 instance

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

ec2-user@ip-172-31-14-250:~> cat /etc/os-release
NAME="SLES"
VERSION="15-SP5"
VERSION_ID="15.5"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP5"

Cluster Configuration:
Single node

Config.yaml:

cat /etc/rancher/rke2/config,yaml
write-kubeconfig-mode: 644
token: "secret"
kube-controller-manager-extra-mount:
        - /tmp/example.txt:/tmp/example.txt
        - /var/lib/rancher/rke2/server/logs/:/var/lib/rancher/rke2/server/logs

Steps to reproduce the issue and validate the fix

  1. Copy config.yaml
  2. touch /tmp/example.txt
  3. Install rke2

Reproduction results:

ec2-user@ip-172-31-14-250:~> rke2 -v
rke2 version v1.32.0+rke2r1 (1182e7eb91b27b1686e69306eb2e227928a27a38)
go version go1.23.3 X:boringcrypto
ec2-user@ip-172-31-14-250:~> sudo tail -f /var/lib/rancher/rke2/agent/pod-manifests/kube-controller-manager.yaml 
    name: file9
  - hostPath:
      path: /tmp/example.txt
      type: File
    name: extra-mount-0
  - hostPath:
      path: /var/lib/rancher/rke2/server/logs/
      type: File
    name: extra-mount-1
status: {}

Validation results:

ec2-user@ip-172-31-14-250:~> rke2 -v
rke2 version v1.32.1-rc2+rke2r1 (05677054d746d22a307e478557a443e3a80cb737)
go version go1.23.4 X:boringcrypto
ec2-user@ip-172-31-14-250:~> sudo tail -f /var/lib/rancher/rke2/agent/pod-manifests/kube-controller-manager.yaml
    name: file9
  - hostPath:
      path: /tmp/example.txt
      type: File
    name: extra-mount-0
  - hostPath:
      path: /var/lib/rancher/rke2/server/logs/
      type: DirectoryOrCreate
    name: extra-mount-1
status: {}

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

No branches or pull requests

4 participants