mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * hosted_control_planes/hcp-manage/hcp-manage-virt.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="hcp-virt-etcd-storage_{context}"]
|
|
= Configuring etcd storage
|
|
|
|
At cluster creation time, you can configure the storage class that is used to host etcd data by using the `--etcd-storage-class` argument.
|
|
|
|
.Procedure
|
|
|
|
* To configure a storage class for etcd, run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ hcp create cluster kubevirt \
|
|
--name <hosted_cluster_name> \ <1>
|
|
--node-pool-replicas <worker_node_count> \ <2>
|
|
--pull-secret <path_to_pull_secret> \ <3>
|
|
--memory <memory> \ <4>
|
|
--cores <cpu> \ <5>
|
|
--etcd-storage-class=<etcd_storage_class_name> <6>
|
|
----
|
|
+
|
|
<1> Specify the name of your hosted cluster, for instance, `example`.
|
|
<2> Specify the worker count, for example, `2`.
|
|
<3> Specify the path to your pull secret, for example, `/user/name/pullsecret`.
|
|
<4> Specify a value for memory, for example, `8Gi`.
|
|
<5> Specify a value for CPU, for example, `2`.
|
|
<6> Specify the etcd storage class name, for example, `lvm-storageclass`. If you do not provide an `--etcd-storage-class` argument, the default storage class is used. |