Installation
Installing the CLI, or the controller, or the Operator
Abstract
Chapter 1. Installing the Skupper CLI Copy linkLink copied to clipboard!
The Skupper CLI provides a method to create both Kubernetes and Podman sites.
Podman sites are a Technology Preview feature as described in Release Notes
Prerequisites
- Your subscription has been activated and your system is registered. For more information about using the Customer Portal to activate your Red Hat subscription and register your system for packages, see Chapter 6, Using your subscription.
Procedure
Use the
subscription-managercommand to subscribe to the required package repositories. Replace<version>with1for the main release stream or1.4for the long term support release stream.- Red Hat Enterprise Linux 8
sudo subscription-manager repos --enable=service-interconnect-_<version>_-for-rhel-8-x86_64-rpms
$ sudo subscription-manager repos --enable=service-interconnect-_<version>_-for-rhel-8-x86_64-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Red Hat Enterprise Linux 9
sudo subscription-manager repos --enable=service-interconnect-_<version>_-for-rhel-9-x86_64-rpms
$ sudo subscription-manager repos --enable=service-interconnect-_<version>_-for-rhel-9-x86_64-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Use the
yumordnfcommand to install theskuppercommand:sudo dnf install skupper-cli
$ sudo dnf install skupper-cliCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you want to run
skupperto create a podman site on RHEL 8, you need to configure podman to usenetavarkif it is not already configured:Check if
netavarkis configured as the podman network backend:podman info | grep networkBackend
$ podman info | grep networkBackendCopy to Clipboard Copied! Toggle word wrap Toggle overflow If
netavarkis not listed as the backend, install it:sudo dnf install netavark
$ sudo dnf install netavarkCopy to Clipboard Copied! Toggle word wrap Toggle overflow Configure podman to use
netavarkby making sure the following lines exist in the/etc/containers/containers.conffile:[network] network_backend = "netavark"
[network] network_backend = "netavark"Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Verify the new configuration by repeating step a.
Additional information
- See Getting Started for instructions about creating a site.
-
Use
man containers.confto view more information about podman configuration.
Chapter 2. Installing the Operator Copy linkLink copied to clipboard!
The Red Hat Service Interconnect Operator creates and manages sites in OpenShift.
The Red Hat Service Interconnect Operator is supported only on OpenShift 4. Installing an Operator requires administrator-level privileges for your cluster.
2.1. Installing the Operator for all namespaces using the CLI Copy linkLink copied to clipboard!
The steps in this section show how to use the oc command to install and deploy the latest version of the Red Hat Service Interconnect Operator in a given OpenShift cluster. Installing the operator for all namespaces allows you create a site in any namespace. See Getting started with the OpenShift CLI for more information about the oc command.
Prerequisites
-
Access to an OpenShift cluster using a
cluster-adminaccount. See Release Notes for supported OpenShift versions.
Procedure
Log in to OpenShift as a cluster administrator. For example:
oc login -u system:admin
$ oc login -u system:adminCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Complete the steps described in Red Hat Container Registry Authentication.
Create a file named
subscription-all.yamlwith the following:Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteIf you do not specify
startingCSV, the subscription defaults to the latest operator version.If you specify
installPlanApprovalasManual, sites are not automatically upgraded to the latest version of Service Interconnect. See Chapter 4, Upgrading the Red Hat Service Interconnect Operator and sites for information on manually upgrading sites.Apply the subscription YAML:
oc apply -f subscription-all.yaml
$ oc apply -f subscription-all.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional information
- See Getting Started for instructions about creating a site.
2.2. Installing the Operator for a single namespace using the CLI Copy linkLink copied to clipboard!
The steps in this section show how to use the oc command to install and deploy the latest version of the Red Hat Service Interconnect Operator in a given OpenShift cluster. Installing the operator for a single namespaces allows you create a site in the specified namespace. See Getting started with the OpenShift CLI for more information about the oc command.
Prerequisites
-
Access to an OpenShift cluster using a
cluster-adminaccount. See Release Notes for supported OpenShift versions.
Procedure
Log in to OpenShift as a cluster administrator. For example:
oc login -u system:admin
$ oc login -u system:adminCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Complete the steps described in Red Hat Container Registry Authentication.
Create an Operator group in the namespace where you want to create a site:
Create a file named
operator-group.yamlwith the following:Copy to Clipboard Copied! Toggle word wrap Toggle overflow where
my-namespaceis the name of the namespace you want to create the site.Apply the Operator group YAML:
oc apply -f operator-group.yaml
$ oc apply -f operator-group.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Create a file named
subscription-myns.yamlwith the following:Copy to Clipboard Copied! Toggle word wrap Toggle overflow where
my-namespaceis the name of the namespace you want to create the site.NoteIf you do not specify
startingCSV, the subscription defaults to the latest operator version.If you specify
installPlanApprovalasManual, sites are not automatically upgraded to the latest version of Service Interconnect. See Chapter 4, Upgrading the Red Hat Service Interconnect Operator and sites for information on manually upgrading sites.Apply the subscription YAML:
oc apply -f subscription-myns.yaml
$ oc apply -f subscription-myns.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional information
- See Getting Started for instructions about creating a site.
2.3. Installing the Operator using the OpenShift console Copy linkLink copied to clipboard!
The procedures in this section show how to use the OperatorHub from the OpenShift console to install and deploy the latest version of the Red Hat Service Interconnect Operator in a given OpenShift namespace.
Prerequisites
-
Access to an OpenShift cluster using a
cluster-adminaccount. See Release Notes for supported OpenShift versions.
Procedure
- In the OpenShift web console, navigate to → .
-
Choose
Red Hat Service Interconnect Operatorfrom the list of available Operators, and then click . On the Operator Installation page, two Installation mode options are available:
- All namespaces on the cluster
A specific namespace on the cluster
For this example, choose A specific namespace on the cluster.
Choose an Update approval option.
By default, Automatic approval is selected, and sites will upgrade to the latest version of Service Interconnect. If you choose Manual approval, sites will not be automatically upgraded to the latest version of Service Interconnect. See Chapter 4, Upgrading the Red Hat Service Interconnect Operator and sites for information on manually upgrading sites.
Select the namespace into which you want to install the Operator, and then click .
The Installed Operators page appears displaying the status of the Operator installation.
- Verify that the Red Hat Service Interconnect Operator is displayed and wait until the Status changes to Succeeded.
If the installation is not successful, troubleshoot the error:
-
Click
Red Hat Service Interconnect Operatoron the Installed Operators page. - Select the Subscription tab and view any failures or errors.
-
Click
For more information about installing Operators, see the OpenShift Documentation
Additional information
- See Getting Started for instructions about creating a site.
Chapter 3. Upgrading the Skupper CLI and sites Copy linkLink copied to clipboard!
Upgrading sites requires the latest version of the Skupper CLI.
Update all sites to ensure the same version of Service Interconnect is running across your service network. You can expect some minimal downtime during the update process.
Procedure
Upgrade the
skupperCLI:dnf upgrade skupper-cli
$ dnf upgrade skupper-cliCopy to Clipboard Copied! Toggle word wrap Toggle overflow Upgrade each site:
- Set the context to the site you want to upgrade.
Run the upgrade command:
skupper update
$ skupper updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Chapter 4. Upgrading the Red Hat Service Interconnect Operator and sites Copy linkLink copied to clipboard!
If you chose automatic updates when installing the Red Hat Service Interconnect Operator, sites are upgraded when a new version of Service Interconnect is available. If you choose manual updates, complete this procedure to upgrade your sites.
Procedure
- Log into the OpenShift console.
- Navigate to the Installed Operators page.
- If Upgrade available is displayed as the Status for the Red Hat Service Interconnect Operator, click that text.
- On the InstallPlan details page, click Preview InstallPlan.
- Click Approve to upgrade sites.
Chapter 5. Installing the policy system Copy linkLink copied to clipboard!
Installing the Skupper policy system on a cluster allows you control how Skupper is used on the cluster.
Applying the policy system in a cluster without specific policy rules prohibits site linking and service exposure. If you are installing the policy system on a cluster where there are existing sites, you must create policies before installing the policy system to avoid disruption.
Prerequisites
-
Access to a Kubernetes cluster with
cluster-adminprivileges. - The Red Hat Service Interconnect Operator is installed
Procedure
- Log into your cluster.
Deploy the policy CRD:
kubectl apply -f skupper_cluster_policy_crd.yaml customresourcedefinition.apiextensions.k8s.io/skupperclusterpolicies.skupper.io created clusterrole.rbac.authorization.k8s.io/skupper-service-controller created
$ kubectl apply -f skupper_cluster_policy_crd.yaml customresourcedefinition.apiextensions.k8s.io/skupperclusterpolicies.skupper.io created clusterrole.rbac.authorization.k8s.io/skupper-service-controller createdCopy to Clipboard Copied! Toggle word wrap Toggle overflow where the contents of
skupper_cluster_policy_crd.yamlis specified in the Appendix A, YAML for the Skupper policy CRD appendix.
Additional information
See Securing a service network using policies for more information about using policies.
Chapter 6. Using your subscription Copy linkLink copied to clipboard!
Red Hat Service Interconnect is provided through a software subscription. To manage your subscriptions, access your account at the Red Hat Customer Portal.
6.1. Accessing your account Copy linkLink copied to clipboard!
Procedure
- Go to access.redhat.com.
- If you do not already have an account, create one.
- Log in to your account.
6.2. Activating a subscription Copy linkLink copied to clipboard!
Procedure
- Go to access.redhat.com.
- Navigate to My Subscriptions.
- Navigate to Activate a subscription and enter your 16-digit activation number.
6.3. Registering your system for packages Copy linkLink copied to clipboard!
To install RPM packages for this product on Red Hat Enterprise Linux, your system must be registered. If you are using downloaded release files, this step is not required.
Procedure
- Go to access.redhat.com.
- Navigate to Registration Assistant.
- Select your OS version and continue to the next page.
- Use the listed command in your system terminal to complete the registration.
For more information about registering your system, see one of the following resources:
Appendix A. YAML for the Skupper policy CRD Copy linkLink copied to clipboard!
The policy system allows a cluster administrator restrict Skupper usage on a cluster. It is not required for typical Skupper usage.
The following YAML applies the Skupper policy CRD to a cluster.
Appendix B. About Service Interconnect documentation Copy linkLink copied to clipboard!
Making open source more inclusive
Red Hat is committed to replacing problematic language in our code, documentation, and web properties. We are beginning with these four terms: master, slave, blacklist, and whitelist. Because of the enormity of this endeavor, these changes will be implemented gradually over several upcoming releases. For more details, see our CTO Chris Wright’s message.
Revised on 2024-10-07 16:42:28 UTC