Kubernetes upgrade from v1.21.x to 1.22.x failing with error "does not recognize SELinux label"
This document (000020995) is provided subject to the disclaimer at the end of this document.
Environment
K8S 1.21.x
RKE1 with SELinux is enabled
Situation
[[selinux] Host [xx.xx.xx.xx] does not recognize SELinux label [label=type:rke_container_t]. This is required for Kubernetes version [>=1.22.0-rancher0]. Please install rancher-selinux RPM package and try again]
Resolution
To verify the current version for Redhat based systems.
rpm -qa | grep rancher-selinuxThe OS repository for installing / upgrading the package ( Example )
vi /etc/yum.repos.d/rancher.repo [rancher] name=Rancher baseurl=https://rpm.rancher.io/rancher/production/centos/7/noarch enabled=1 gpgcheck=1 gpgkey=https://rpm.rancher.io/public.key yum -y install rancher-selinux To upgrade if already installed the old version yum update rancher-selinux
Cause
Status
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020995
- Creation Date: 01-Mar-2023
- Modified Date:23-Aug-2023
-
- SUSE Rancher
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com