mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
75 lines
2.5 KiB
Plaintext
75 lines
2.5 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// microshift/microshift-install-rpm.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="installing-microshift-from-rpm-package_{context}"]
|
|
= Installing {product-title} from an RPM package
|
|
|
|
Use the following procedure to install {product-title} from an RPM package.
|
|
|
|
.Prerequisites
|
|
|
|
* The system requirements for installing {product-title} have been met.
|
|
* You have completed the steps of preparing to install {product-title} from an RPM package.
|
|
|
|
.Procedure
|
|
|
|
. As a root user, enable the {product-title} repositories by running the following command:
|
|
+
|
|
[source,terminal,subs="attributes+"]
|
|
----
|
|
$ sudo subscription-manager repos \
|
|
--enable rhocp-{ocp-version}-for-{rhel-major}-$(uname -m)-rpms \
|
|
--enable fast-datapath-for-{rhel-major}-$(uname -m)-rpms
|
|
----
|
|
|
|
. Install {product-title} by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ sudo dnf install -y microshift
|
|
----
|
|
|
|
. Download your installation pull secret from the https://console.redhat.com/openshift/install/pull-secret[Red Hat Hybrid Cloud Console] to a temporary folder, for example, `$HOME/openshift-pull-secret`. This pull secret allows you to authenticate with the container registries that serve the container images used by {product-title}.
|
|
|
|
. To copy the pull secret to the `/etc/crio` folder of your {op-system} machine, run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ sudo cp $HOME/openshift-pull-secret /etc/crio/openshift-pull-secret
|
|
----
|
|
|
|
. Make the root user the owner of the `/etc/crio/openshift-pull-secret` file by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ sudo chown root:root /etc/crio/openshift-pull-secret
|
|
----
|
|
|
|
. Make the `/etc/crio/openshift-pull-secret` file readable and writeable by the root user only by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ sudo chmod 600 /etc/crio/openshift-pull-secret
|
|
----
|
|
|
|
. If your {op-system} machine has a firewall enabled, you must configure a few mandatory firewall rules. For `firewalld`, run the following commands:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ sudo firewall-cmd --permanent --zone=trusted --add-source=10.42.0.0/16
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ sudo firewall-cmd --permanent --zone=trusted --add-source=169.254.169.1
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ sudo firewall-cmd --reload
|
|
----
|
|
|
|
If the Volume Group (VG) that you have prepared for {product-title} used the default name `rhel`, no further configuration is necessary. If you have used a different name, or if you want to change more configuration settings, see the Configuring {product-title} section.
|