关于 rancher-selinux
为了让 Rancher 与 SELinux 一起工作,必须手动为 SELinux 节点启用某些功能。为此,Rancher 提供了一个 SELinux RPM。
rancher-selinux RPM 包含一组 SELinux 策略,旨在授予在启用 SELinux 的 Linux 系统上运行的各种 Rancher 组件所需的权限。
rancher-selinux 的 GitHub 储存库在 这里。
安装 rancher-selinux RPM
|
要求:
|
1.设置 yum 储存库
设置 yum 储存库以便在集群中的所有主机上直接安装 rancher-selinux。
为了使用 RPM 储存库,在 CentOS 8 或 RHEL 8 系统上,运行以下 bash 代码片段:
# cat << EOF > /etc/yum.repos.d/rancher.repo [rancher] name=Rancher baseurl=https://rpm.rancher.io/rancher/production/centos/8/noarch enabled=1 gpgcheck=1 gpgkey=https://rpm.rancher.io/public.key EOF
为了使用 RPM 储存库,在 CentOS 9 或 RHEL 9 系统上,运行以下 bash 代码片段:
# cat << EOF > /etc/yum.repos.d/rancher.repo [rancher] name=Rancher baseurl=https://rpm.rancher.io/rancher/production/centos/9/noarch enabled=1 gpgcheck=1 gpgkey=https://rpm.rancher.io/public.key EOF