You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run "kubeadm upgrade apply v1.30.5 --config=/etc/kubernetes/kube-cluster.conf -y" command, it should update this flag in "kubelet-config" Configmap as well as "/var/lib/kubelet/config.yaml" file. But its not happening.
What you expected to happen?
"kubeadm upgrade apply v1.30.5 --config=/etc/kubernetes/kube-cluster.conf -y" command should update podLogsDir: "/storage/kubelet/pods" flag in kubelet-config configmap as well as /var/lib/kubelet/config.yaml(kubelet config file)
How to reproduce it (as minimally and precisely as possible)?
Step 1: Add podLogsDir: "/storage/kubelet/pods" flag in kubeletConfiguration section in kubeadm config file. Refer below
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
staticPodPath: "/etc/kubernetes/manifests" podLogsDir: "/storage/kubelet/pods"
tlsCertFile: "/etc/kubernetes/pki/kubelet.crt"
tlsPrivateKeyFile: "/etc/kubernetes/pki/kubelet.key"
rotateCertificates: true
Step 2: Run "kubeadm upgrade apply v1.30.5 --config=/etc/kubernetes/kube-cluster.conf -y" command
Anything else we need to know?
No.
The text was updated successfully, but these errors were encountered:
You seem to have troubles using Kubernetes and kubeadm.
Note that our issue trackers should not be used for providing support to users.
There are special channels for that purpose.
What keywords did you search in kubeadm issues before filing this one?
Answer: podLogsDir
Is this a BUG REPORT or FEATURE REQUEST?
Choose one: BUG REPORT
kubeadm version (use
kubeadm version
):kubeadm version: &version.Info{Major:"1", Minor:"30", GitVersion:"v1.30.5", GitCommit:"74e84a90c725047b1328ff3d589fedb1cb7a120e", GitTreeState:"clean", BuildDate:"2024-09-12T00:17:07Z", GoVersion:"go1.22.6", Compiler:"gc", Platform:"linux/amd64"}
Environment:
kubectl version
): v1.30.5uname -a
): Linux kubemaster 5.15.0-300.163.18.1.el8uek.x86_64 kubeadm init starts paused containers on ubuntu 16.04 #2 SMP Thu Oct 3 13:38:45 PDT 2024 x86_64 x86_64 x86_64 GNU/LinuxWhat happened?
We have add podLogsDir flag in kube-cluster.conf(Which has cluster config and passed as --config flag to kubeadm command) file
[ root@kubemaster ~]# grep podLogsDir /etc/kubernetes/kube-cluster.conf
podLogsDir: "/storage/kubelet/pods"
[ root@kubemaster ~]#
When I run "kubeadm upgrade apply v1.30.5 --config=/etc/kubernetes/kube-cluster.conf -y" command, it should update this flag in "kubelet-config" Configmap as well as "/var/lib/kubelet/config.yaml" file. But its not happening.
What you expected to happen?
"kubeadm upgrade apply v1.30.5 --config=/etc/kubernetes/kube-cluster.conf -y" command should update podLogsDir: "/storage/kubelet/pods" flag in kubelet-config configmap as well as /var/lib/kubelet/config.yaml(kubelet config file)
How to reproduce it (as minimally and precisely as possible)?
Step 1: Add podLogsDir: "/storage/kubelet/pods" flag in kubeletConfiguration section in kubeadm config file. Refer below
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
staticPodPath: "/etc/kubernetes/manifests"
podLogsDir: "/storage/kubelet/pods"
tlsCertFile: "/etc/kubernetes/pki/kubelet.crt"
tlsPrivateKeyFile: "/etc/kubernetes/pki/kubelet.key"
rotateCertificates: true
Step 2: Run "kubeadm upgrade apply v1.30.5 --config=/etc/kubernetes/kube-cluster.conf -y" command
Anything else we need to know?
No.
The text was updated successfully, but these errors were encountered: