Installing the Operator SDK CLI
The Operator SDK provides a command-line interface (CLI) tool that Operator developers can use to build, test, and deploy an Operator. You can install the Operator SDK CLI on your workstation so that you are prepared to start authoring your own Operators.
OKD 4.8 supports Operator SDK v1.8.0. |
Installing the Operator SDK CLI
You can install the OpenShift SDK CLI tool on Linux.
Prerequisites
Procedure
Navigate to the OpenShift mirror site.
From the
4.8.4
directory, download the latest version of the tarball for Linux.Unpack the archive:
$ tar xvf operator-sdk-v1.8.0-ocp-linux-x86_64.tar.gz
Make the file executable:
$ chmod +x operator-sdk
Move the extracted
operator-sdk
binary to a directory that is on yourPATH
.To check your
PATH
:$ echo $PATH
$ sudo mv ./operator-sdk /usr/local/bin/operator-sdk
Verification
After you install the Operator SDK CLI, verify that it is available:
$ operator-sdk version
Example output
operator-sdk version: "v1.8.0-ocp", ...