Openshift install oc linux

Installing a cluster on any platform

In OpenShift Container Platform version 4.9, you can install a cluster on any infrastructure that you provision, including virtualization and cloud environments.

Review the information in the guidelines for deploying OpenShift Container Platform on non-tested platforms before you attempt to install an OpenShift Container Platform cluster in virtualized or cloud environments.

Prerequisites

  • You reviewed details about the OpenShift Container Platform installation and update processes.
  • You read the documentation on selecting a cluster installation method and preparing it for users.
  • If you use a firewall, you configured it to allow the sites that your cluster requires access to.

Internet access for OpenShift Container Platform

In OpenShift Container Platform 4.9, you require access to the internet to install your cluster.

You must have internet access to:

  • Access OpenShift Cluster Manager to download the installation program and perform subscription management. If the cluster has internet access and you do not disable Telemetry, that service automatically entitles your cluster.
  • Access Quay.io to obtain the packages that are required to install your cluster.
  • Obtain the packages that are required to perform cluster updates.

If your cluster cannot have direct internet access, you can perform a restricted network installation on some types of infrastructure that you provision. During that process, you download the required content and use it to populate a mirror registry with the installation packages. With some installation types, the environment that you install your cluster in will not require internet access. Before you update the cluster, you update the content of the mirror registry.

Читайте также:  Linux on flash drive ubuntu

Requirements for a cluster with user-provisioned infrastructure

For a cluster that contains user-provisioned infrastructure, you must deploy all of the required machines.

This section describes the requirements for deploying OpenShift Container Platform on user-provisioned infrastructure.

Required machines for cluster installation

The smallest OpenShift Container Platform clusters require the following hosts:

One temporary bootstrap machine

The cluster requires the bootstrap machine to deploy the OpenShift Container Platform cluster on the three control plane machines. You can remove the bootstrap machine after you install the cluster.

Three control plane machines

The control plane machines run the Kubernetes and OpenShift Container Platform services that form the control plane.

At least two compute machines, which are also known as worker machines.

The workloads requested by OpenShift Container Platform users run on the compute machines.

To maintain high availability of your cluster, use separate physical hosts for these cluster machines.

The bootstrap and control plane machines must use Red Hat Enterprise Linux CoreOS (RHCOS) as the operating system. However, the compute machines can choose between Red Hat Enterprise Linux CoreOS (RHCOS), Red Hat Enterprise Linux (RHEL) 7.9, or RHEL 8.4.

Note that RHCOS is based on Red Hat Enterprise Linux (RHEL) 8 and inherits all of its hardware certifications and requirements. See Red Hat Enterprise Linux technology capabilities and limits.

Minimum resource requirements for cluster installation

Each cluster machine must meet the following minimum requirements:

Источник

How to install OpenShift CLI (oc) on Linux/Windows

Detailed steps on downloading and installing OpenShift CLI on Linux & Windows. You can watch the video or follow the text.

Читайте также:  Rdp in linux apps

On RedHat OpenShift Container Platform window, click on the question mark on top right and select command line tools

As you can see below, you can download the required versions of oc client from here

on Openshift console under command line tools select the required oc client binary for download

Another option is to download it directly from OpenShift mirror repo.

Download red hat openshift cli directly from openshift repository red hat openshift download repository

To install on Linux follow these steps below

  • Now set the path and restart .bashrc
  • export PATH=/PathOfTheOCfile:$PATH
  • source .bashrc

To install on Windows follow these steps below

On Windows download it to some folder, unzip it

Openshift client download for windows

Now add the path to environment variables. In my case, I have copied it to C:/OpenShift/CLI/oc

set path to environment variables for openshift cli

Let’s check the path is set properly. As you see the path is correct

Now check the oc client version

how to check openshift cli version

That’s all, we can now connect to an OpenShift cluster using oc. I will be adding more training on how to use oc client and handy set of useful commands soon.

Share this:

2 thoughts on “ How to install OpenShift CLI (oc) on Linux/Windows ”

Categories

Recent Posts

Archives

  • March 2023
  • March 2021
  • February 2021

Subscribe to YouTube

The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.

The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.

The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.

Читайте также:  Install node js linux centos

The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.

Источник

Оцените статью
Adblock
detector