|
| 1 | +// |
| 2 | +This module is included in the following assemblies: |
| 3 | +* service_mesh/v2x/ossm-create-smcp.adoc |
| 4 | +// |
| 5 | +:_content-type: PROCEDURE |
| 6 | +[id="ossm-deploy-cluster-wide-control-plane-cli_{context}"] |
| 7 | += Configuring the control plane for cluster-wide deployment with the CLI |
| 8 | + |
| 9 | +You can configure the `ServiceMeshControlPlane` resource for cluster-wide deployment using the CLI. In this example, `istio-system` is the name of the Service Mesh control plane namespace. |
| 10 | + |
| 11 | +.Prerequisites |
| 12 | + |
| 13 | +* The {SMProductName} Operator is installed. |
| 14 | +* You have access to the OpenShift CLI (`oc`). |
| 15 | +
|
| 16 | +.Procedure |
| 17 | + |
| 18 | +. 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. |
| 19 | ++ |
| 20 | +[source,terminal] |
| 21 | +---- |
| 22 | +$ oc login --username=<NAMEOFUSER> https://<HOSTNAME>:6443 |
| 23 | +---- |
| 24 | ++ |
| 25 | +. Create a project named `istio-system`. |
| 26 | ++ |
| 27 | +[source,terminal] |
| 28 | +---- |
| 29 | +$ oc new-project istio-system |
| 30 | +---- |
| 31 | + |
| 32 | +. Create a `ServiceMeshControlPlane` file named `istio-installation.yaml` using the following example. |
| 33 | ++ |
| 34 | +.Example version {MaistraVersion} istio-installation.yaml |
| 35 | +[source,yaml, subs="attributes,verbatim"] |
| 36 | +---- |
| 37 | +apiVersion: maistra.io/v2 |
| 38 | +kind: ServiceMeshControlPlane |
| 39 | +metadata: |
| 40 | + name: basic |
| 41 | + namespace: istio-system |
| 42 | +spec: |
| 43 | + version: v{MaistraVersion} |
| 44 | + mode: ClusterWide |
| 45 | +---- |
| 46 | + |
| 47 | +. Run the following command to deploy the {SMProductShortName} control plane, where `<istio_installation.yaml>` includes the full path to your file. |
| 48 | ++ |
| 49 | +[source,terminal] |
| 50 | +---- |
| 51 | +$ oc create -n istio-system -f <istio_installation.yaml> |
| 52 | +---- |
| 53 | ++ |
| 54 | +. To monitor the progress of the pod deployment, run the following command: |
| 55 | ++ |
| 56 | +[source,terminal] |
| 57 | +---- |
| 58 | +$ oc get pods -n istio-system -w |
| 59 | +---- |
| 60 | ++ |
| 61 | +You should see output similar to the following example: |
| 62 | ++ |
| 63 | +.Example output |
| 64 | +[source,terminal] |
| 65 | +---- |
| 66 | +NAME READY STATUS RESTARTS AGE |
| 67 | +grafana-b4d59bd7-mrgbr 2/2 Running 0 65m |
| 68 | +istio-egressgateway-678dc97b4c-wrjkp 1/1 Running 0 108s |
| 69 | +istio-ingressgateway-b45c9d54d-4qg6n 1/1 Running 0 108s |
| 70 | +istiod-basic-55d78bbbcd-j5556 1/1 Running 0 108s |
| 71 | +jaeger-67c75bd6dc-jv6k6 2/2 Running 0 65m |
| 72 | +kiali-6476c7656c-x5msp 1/1 Running 0 43m |
| 73 | +prometheus-58954b8d6b-m5std 2/2 Running 0 66m |
| 74 | +---- |
0 commit comments