mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
76 lines
1.8 KiB
Plaintext
76 lines
1.8 KiB
Plaintext
////
|
|
This module is included in the following assemblies:
|
|
* service_mesh/v2x/ossm-observability.adoc
|
|
////
|
|
|
|
:_content-type: PROCEDURE
|
|
[id="ossm-control-plane-deploy-cli_{context}"]
|
|
= Deploying the control plane from the CLI
|
|
|
|
You can deploy a basic `ServiceMeshControlPlane` from the command line.
|
|
|
|
.Prerequisites
|
|
|
|
* The {ProductName} Operator must be installed.
|
|
* Access to the OpenShift CLI (`oc`).
|
|
|
|
.Procedure
|
|
|
|
. Log in to the {product-title} CLI as a user with the `cluster-admin` role. If you use Red Hat OpenShift Dedicated, you must have an account with the `dedicated-admin` role.
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc login https://{HOSTNAME}:6443
|
|
----
|
|
+
|
|
. Create a project named `istio-system`.
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc new-project istio-system
|
|
----
|
|
+
|
|
. Create a `ServiceMeshControlPlane` file named `istio-installation.yaml` using the following example. The version of the control plane determines the features available regardless of the version of the Operator.
|
|
+
|
|
.Example version 2.0 istio-installation.yaml
|
|
[source,yaml]
|
|
----
|
|
apiVersion: maistra.io/v2
|
|
kind: ServiceMeshControlPlane
|
|
metadata:
|
|
name: basic
|
|
namespace: istio-system
|
|
spec:
|
|
version: v2.0
|
|
tracing:
|
|
type: Jaeger
|
|
sampling: 10000
|
|
addons:
|
|
jaeger:
|
|
name: jaeger
|
|
install:
|
|
storage:
|
|
type: Memory
|
|
kiali:
|
|
enabled: true
|
|
name: kiali
|
|
grafana:
|
|
enabled: true
|
|
----
|
|
+
|
|
. Run the following command to deploy the control plane, where `<istio_installation.yaml>` includes the full path to your file.
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc create -n istio-system -f <istio_installation.yaml>
|
|
----
|
|
+
|
|
. Run the following command to verify the control plane installation.
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get smcp -n istio-system
|
|
----
|
|
+
|
|
The installation has finished successfully when the `STATUS` column is `ComponentsReady`.
|