From 6fcb833430028206d9a5d57087cf7336511c18f0 Mon Sep 17 00:00:00 2001 From: cluse Date: Sat, 19 Dec 2020 18:09:57 -0700 Subject: [PATCH 1/2] Document iptables and container-selinux config for RancherD install on SELinux --- .../installation/install-rancher-on-linux/_index.md | 1 + .../v2.x/en/installation/requirements/_index.md | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/content/rancher/v2.x/en/installation/install-rancher-on-linux/_index.md b/content/rancher/v2.x/en/installation/install-rancher-on-linux/_index.md index 0ceaf5bb836..cb4278538de 100644 --- a/content/rancher/v2.x/en/installation/install-rancher-on-linux/_index.md +++ b/content/rancher/v2.x/en/installation/install-rancher-on-linux/_index.md @@ -38,6 +38,7 @@ RancherD must be launched on a Linux OS. At this time, only OSes that leverage s The Linux node needs to fulfill the [installation requirements]({{}}/rancher/v2.x/en/installation/requirements) for hardware and networking. +To install RancherD on SELinux Enforcing CentOS 8 nodes, some [additional steps]({{}}/rancher/v2.x/en/installation/requirements/#rancherd-on-selinux-enforcing-centos-8-nodes) are required. ### Root Access Before running the installation commands, you will need to log in as root: diff --git a/content/rancher/v2.x/en/installation/requirements/_index.md b/content/rancher/v2.x/en/installation/requirements/_index.md index 45b6ef00f1d..9a199bf4514 100644 --- a/content/rancher/v2.x/en/installation/requirements/_index.md +++ b/content/rancher/v2.x/en/installation/requirements/_index.md @@ -31,6 +31,8 @@ Rancher should work with any modern Linux distribution. At this time, only Linux OSes that leverage systemd are supported. +To install RancherD on SELinux Enforcing CentOS 8 nodes, some [additional steps](#rancherd-on-selinux-enforcing-centos-8-nodes) are required. + ### Requirements for Installing Rancher on an RKE Kubernetes Cluster For the container runtime, RKE should work with any modern Docker version, while K3s should work with any modern version of Docker or containerd. @@ -148,3 +150,12 @@ Each node used should have a static IP configured, regardless of whether you are ### Port Requirements To operate properly, Rancher requires a number of ports to be open on Rancher nodes and on downstream Kubernetes cluster nodes. [Port Requirements]({{}}/rancher/v2.x/en/installation/requirements/ports) lists all the necessary ports for Rancher and Downstream Clusters for the different cluster types. + +# RancherD on SELinux Enforcing CentOS 8 Nodes + +Before installing Rancher on SELinux Enforcing CentOS 8 nodes, you must install `container-selinux` and `iptables`: + +``` +sudo yum install iptables +sudo yum install container-selinux +``` \ No newline at end of file From 142c2066ab22836ad3375e1d0647af48899afc9f Mon Sep 17 00:00:00 2001 From: Catherine Luse Date: Mon, 21 Dec 2020 11:25:04 -0700 Subject: [PATCH 2/2] Call out RHEL 8 nodes as needing extra config for RancherD --- .../v2.x/en/installation/install-rancher-on-linux/_index.md | 2 +- content/rancher/v2.x/en/installation/requirements/_index.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/rancher/v2.x/en/installation/install-rancher-on-linux/_index.md b/content/rancher/v2.x/en/installation/install-rancher-on-linux/_index.md index cb4278538de..30c69a01a0f 100644 --- a/content/rancher/v2.x/en/installation/install-rancher-on-linux/_index.md +++ b/content/rancher/v2.x/en/installation/install-rancher-on-linux/_index.md @@ -38,7 +38,7 @@ RancherD must be launched on a Linux OS. At this time, only OSes that leverage s The Linux node needs to fulfill the [installation requirements]({{}}/rancher/v2.x/en/installation/requirements) for hardware and networking. -To install RancherD on SELinux Enforcing CentOS 8 nodes, some [additional steps]({{}}/rancher/v2.x/en/installation/requirements/#rancherd-on-selinux-enforcing-centos-8-nodes) are required. +To install RancherD on SELinux Enforcing CentOS 8 nodes or RHEL 8 nodes, some [additional steps]({{}}/rancher/v2.x/en/installation/requirements/#rancherd-on-selinux-enforcing-centos-8-nodes) are required. ### Root Access Before running the installation commands, you will need to log in as root: diff --git a/content/rancher/v2.x/en/installation/requirements/_index.md b/content/rancher/v2.x/en/installation/requirements/_index.md index 9a199bf4514..446fb435e7e 100644 --- a/content/rancher/v2.x/en/installation/requirements/_index.md +++ b/content/rancher/v2.x/en/installation/requirements/_index.md @@ -31,7 +31,7 @@ Rancher should work with any modern Linux distribution. At this time, only Linux OSes that leverage systemd are supported. -To install RancherD on SELinux Enforcing CentOS 8 nodes, some [additional steps](#rancherd-on-selinux-enforcing-centos-8-nodes) are required. +To install RancherD on SELinux Enforcing CentOS 8 or RHEL 8 nodes, some [additional steps](#rancherd-on-selinux-enforcing-centos-8-or-rhel-8-nodes) are required. ### Requirements for Installing Rancher on an RKE Kubernetes Cluster @@ -151,9 +151,9 @@ Each node used should have a static IP configured, regardless of whether you are To operate properly, Rancher requires a number of ports to be open on Rancher nodes and on downstream Kubernetes cluster nodes. [Port Requirements]({{}}/rancher/v2.x/en/installation/requirements/ports) lists all the necessary ports for Rancher and Downstream Clusters for the different cluster types. -# RancherD on SELinux Enforcing CentOS 8 Nodes +# RancherD on SELinux Enforcing CentOS 8 or RHEL 8 Nodes -Before installing Rancher on SELinux Enforcing CentOS 8 nodes, you must install `container-selinux` and `iptables`: +Before installing Rancher on SELinux Enforcing CentOS 8 nodes or RHEL 8 nodes, you must install `container-selinux` and `iptables`: ``` sudo yum install iptables