1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/developer-cli-odo-creating-a-service-from-an-operator.adoc
Yana Hontyk 9683b4a76f Update odo list components.
Removed outdated flags.

Update command.
2020-09-08 19:33:57 +00:00

44 lines
971 B
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/developer_cli_odo/creating-instances-of-services-managed-by-the-operators.adoc
[id="creating-a-service-from-an-operator_{context}"]
= Creating a service from an Operator
If an Operator has valid values defined in its `metadata` to start the requested service, you can use the service with `odo service create`.
. Print the YAML of the service as a file on your local drive:
+
[source,terminal]
----
$ oc get csv/etcdoperator.v0.9.4 -o yaml
----
. Verify that the values of the service are valid:
+
[source,terminal]
----
apiVersion: etcd.database.coreos.com/v1beta2
kind: EtcdCluster
metadata:
name: example
spec:
size: 3
version: 3.2.13
----
. Start an `EtcdCluster` service from the `etcdoperator.v0.9.4` Operator:
+
[source,terminal]
----
$ odo service create etcdoperator.v0.9.4 EtcdCluster
----
. Verify that a service has started:
+
[source,terminal]
----
$ oc get EtcdCluster
----