From f11d1b72d4190c85120866925bf2fb6ce2d73ebc Mon Sep 17 00:00:00 2001 From: Cameron Seader Date: Wed, 24 Feb 2021 15:26:30 -0700 Subject: [PATCH 1/3] Added SUSE/openSUSE Linux support --- content/rke/latest/en/os/_index.md | 72 ++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/content/rke/latest/en/os/_index.md b/content/rke/latest/en/os/_index.md index 1c44104e1fe..c9618f3430c 100644 --- a/content/rke/latest/en/os/_index.md +++ b/content/rke/latest/en/os/_index.md @@ -98,6 +98,78 @@ xt_tcpudp | ``` net.bridge.bridge-nf-call-iptables=1 ``` +### SUSE Linux Enterprise Server (SLES) / openSUSE +If you are using SUSE Linux Enterprise Server or openSUSE follow the instructions below. + +#### Using upstream Docker +If you are using upstream Docker, the package name is `docker-ce` or `docker-ee`. You can check the installed package by executing: + +``` +rpm -q docker-ce +``` + +When using the upstream Docker packages, please follow [Manage Docker as a non-root user](https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user). + +#### Using SUSE/openSUSE packaged Docker +If you are using the Docker package supplied by SUSE/openSUSE, the package name is `docker`. You can check the installed package by executing: + +``` +rpm -q docker +``` + +#### Adding the Software repository for docker +In SUSE Linux Enterprise Server 15 SP2 docker is found in the Containers module. +This module will need to be added before istalling docker. + +To list available modules you can run SUSEConnect to list the extensions and the activation command +``` +node:~ # SUSEConnect --list-extensions +AVAILABLE EXTENSIONS AND MODULES + + Basesystem Module 15 SP2 x86_64 (Activated) + Deactivate with: SUSEConnect -d -p sle-module-basesystem/15.2/x86_64 + + Containers Module 15 SP2 x86_64 + Activate with: SUSEConnect -p sle-module-containers/15.2/x86_64 +``` +Run this SUSEConnect command to activate the Containers module. +``` +node:~ # SUSEConnect -p sle-module-containers/15.2/x86_64 +Registering system to registration proxy https://rmt.seader.us + +Updating system details on https://rmt.seader.us ... + +Activating sle-module-containers 15.2 x86_64 ... +-> Adding service to system ... +-> Installing release package ... + +Successfully registered system +``` +In order to run docker cli commands with your user then you need to add this user to the `docker` group. +It is preferred not to use the root user for this. + +``` +usermod -aG docker +``` + +To verify that the user is correctly configured, log out of the node and login using SSH or your preferred method, and execute `docker ps`: + +``` +ssh user@node +user@node:~> docker ps +CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES +user@node:~> +``` +### openSUSE MicroOS/Kubic (Atomic) +Consult the project pages for openSUSE MicroOS and Kubic for installation +#### openSUSE MicroOS +Designed to host container workloads with automated administration & patching. Installing openSUSE MicroOS you get a quick, small environment for deploying Containers, or any other workload that benefits from Transactional Updates. As rolling release distribution the software is always up-to-date. +https://microos.opensuse.org +#### openSUSE Kubic +Based on MicroOS, but not a rolling release distribution. Designed with the same things in mind but also a Certified Kubernetes Distribution. +https://kubic.opensuse.org +Installation instructions: +https://kubic.opensuse.org/blog/2021-02-08-MicroOS-Kubic-Rancher-RKE/ ### Red Hat Enterprise Linux (RHEL) / Oracle Linux (OL) / CentOS From fb2bb0c735336cdc2f8877effdb076f1b405a84f Mon Sep 17 00:00:00 2001 From: Cameron Seader Date: Wed, 24 Feb 2021 15:58:43 -0700 Subject: [PATCH 2/3] Updated TOC --- content/rke/latest/en/os/_index.md | 42 ++++++++++++++++++------------ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/content/rke/latest/en/os/_index.md b/content/rke/latest/en/os/_index.md index c9618f3430c..382ce44db12 100644 --- a/content/rke/latest/en/os/_index.md +++ b/content/rke/latest/en/os/_index.md @@ -5,23 +5,31 @@ weight: 5 **In this section:** - - [Operating System](#operating-system) - - [General Linux Requirements](#general-linux-requirements) - - [Red Hat Enterprise Linux (RHEL) / Oracle Linux (OL) / CentOS](#red-hat-enterprise-linux-rhel-oracle-enterprise-linux-ol-centos) - - - [Using upstream Docker](#using-upstream-docker) - - [Using RHEL/CentOS packaged Docker](#using-rhel-centos-packaged-docker) - - [Notes about Atomic Nodes](#red-hat-atomic) - - - [OpenSSH version](#openssh-version) - - [Creating a Docker Group](#creating-a-docker-group) - - [Flatcar Container Linux](#flatcar-container-linux) + - [General Linux Requirements](#general-linux-requirements) + - [SUSE Linux Enterprise Server (SLES) / openSUSE](#suse-linux-enterprise-server-sles--opensuse) + - [Using upstream Docker](#using-upstream-docker) + - [Using SUSE/openSUSE packaged docker](#using-suseopensuse-packaged-docker) + - [Adding the Software repository for docker](#adding-the-software-repository-for-docker) + - [openSUSE MicroOS/Kubic (Atomic)](#opensuse-microoskubic-atomic) + - [openSUSE MicroOS](#opensuse-microos) + - [openSUSE Kubic](#opensuse-kubic) + - [Red Hat Enterprise Linux (RHEL) / Oracle Linux (OL) / CentOS](#red-hat-enterprise-linux-rhel--oracle-linux-ol--centos) + - [Using upstream Docker](#using-upstream-docker-1) + - [Using RHEL/CentOS packaged Docker](#using-rhelcentos-packaged-docker) + - [Red Hat Atomic](#red-hat-atomic) + - [OpenSSH version](#openssh-version) + - [Creating a Docker Group](#creating-a-docker-group) + - [Flatcar Container Linux](#flatcar-container-linux) - [Software](#software) + - [OpenSSH](#openssh) + - [Kubernetes](#kubernetes) + - [Docker](#docker) + - [Installing Docker](#installing-docker) + - [Checking the Installed Docker Version](#checking-the-installed-docker-version) - [Ports](#ports) - - - [Opening port TCP/6443 using `iptables`](#opening-port-tcp-6443-using-iptables) - - [Opening port TCP/6443 using `firewalld`](#opening-port-tcp-6443-using-firewalld) + - [Opening port TCP/6443 using `iptables`](#opening-port-tcp6443-using-iptables) + - [Opening port TCP/6443 using `firewalld`](#opening-port-tcp6443-using-firewalld) - [SSH Server Configuration](#ssh-server-configuration) @@ -98,10 +106,12 @@ xt_tcpudp | ``` net.bridge.bridge-nf-call-iptables=1 ``` + ### SUSE Linux Enterprise Server (SLES) / openSUSE + If you are using SUSE Linux Enterprise Server or openSUSE follow the instructions below. -#### Using upstream Docker +#### Using upstream Docker If you are using upstream Docker, the package name is `docker-ce` or `docker-ee`. You can check the installed package by executing: ``` @@ -110,7 +120,7 @@ rpm -q docker-ce When using the upstream Docker packages, please follow [Manage Docker as a non-root user](https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user). -#### Using SUSE/openSUSE packaged Docker +#### Using SUSE/openSUSE packaged docker If you are using the Docker package supplied by SUSE/openSUSE, the package name is `docker`. You can check the installed package by executing: ``` From 17ead3ff7fa6946e8a43ca13f6a75dc447f086d6 Mon Sep 17 00:00:00 2001 From: Catherine Luse Date: Wed, 24 Feb 2021 16:20:42 -0700 Subject: [PATCH 3/3] Capitalize Docker --- content/rke/latest/en/os/_index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/rke/latest/en/os/_index.md b/content/rke/latest/en/os/_index.md index 382ce44db12..da210b14422 100644 --- a/content/rke/latest/en/os/_index.md +++ b/content/rke/latest/en/os/_index.md @@ -8,9 +8,9 @@ weight: 5 - [Operating System](#operating-system) - [General Linux Requirements](#general-linux-requirements) - [SUSE Linux Enterprise Server (SLES) / openSUSE](#suse-linux-enterprise-server-sles--opensuse) - - [Using upstream Docker](#using-upstream-docker) - - [Using SUSE/openSUSE packaged docker](#using-suseopensuse-packaged-docker) - - [Adding the Software repository for docker](#adding-the-software-repository-for-docker) + - [Using Upstream Docker](#using-upstream-docker) + - [Using SUSE/openSUSE packaged Docker](#using-suseopensuse-packaged-docker) + - [Adding the Software Repository for Docker](#adding-the-software-repository-for-docker) - [openSUSE MicroOS/Kubic (Atomic)](#opensuse-microoskubic-atomic) - [openSUSE MicroOS](#opensuse-microos) - [openSUSE Kubic](#opensuse-kubic)