1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/ossm-control-plane-cli.adoc
2023-10-30 10:13:25 -04:00

87 lines
2.5 KiB
Plaintext

////
This module is included in the following assemblies:
* service_mesh/v2x/ossm-create-smcp.adoc
////
:_mod-docs-content-type: PROCEDURE
[id="ossm-control-plane-deploy-cli_{context}"]
= Deploying the {SMProductShortName} control plane using the CLI
You can deploy a basic `ServiceMeshControlPlane` from the command line.
.Prerequisites
* The {SMProductName} 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 {product-dedicated}, you must have an account with the `dedicated-admin` role.
+
[source,terminal]
----
$ oc login --username=<NAMEOFUSER> 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 {SMProductShortName} control plane determines the features available regardless of the version of the Operator.
+
.Example version {MaistraVersion} istio-installation.yaml
[source,yaml, subs="attributes,verbatim"]
----
apiVersion: maistra.io/v2
kind: ServiceMeshControlPlane
metadata:
name: basic
namespace: istio-system
spec:
version: v{MaistraVersion}
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 {SMProductShortName} control plane, where `<istio_installation.yaml>` includes the full path to your file.
+
[source,terminal]
----
$ oc create -n istio-system -f <istio_installation.yaml>
----
+
. To watch the progress of the pod deployment, run the following command:
+
[source,terminal]
----
$ oc get pods -n istio-system -w
----
+
You should see output similar to the following:
+
[source,terminal]
----
NAME READY STATUS RESTARTS AGE
grafana-b4d59bd7-mrgbr 2/2 Running 0 65m
istio-egressgateway-678dc97b4c-wrjkp 1/1 Running 0 108s
istio-ingressgateway-b45c9d54d-4qg6n 1/1 Running 0 108s
istiod-basic-55d78bbbcd-j5556 1/1 Running 0 108s
jaeger-67c75bd6dc-jv6k6 2/2 Running 0 65m
kiali-6476c7656c-x5msp 1/1 Running 0 43m
prometheus-58954b8d6b-m5std 2/2 Running 0 66m
----