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 a command similar to the following example:
$ hcp create cluster kubevirt \ --name my-hosted-cluster \ --node-pool-replicas 2 \ --pull-secret /user/name/pullsecret \ --memory 8Gi \ --cores 2 \ --etcd-storage-class=lvm-storageclass-
--namespecifies the name of your hosted cluster. -
--node-pool-replicasspecifies the worker count. -
--pull-secretspecifies the path to your pull secret. -
--memoryspecifies a value for memory. -
--coresspecifies a value for CPU. -
--etcd-storage-classspecifies the etcd storage class name. If you do not provide an--etcd-storage-classargument, the default storage class is used.
-