mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
58 lines
1.9 KiB
Plaintext
58 lines
1.9 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * machine_management/cpmso-configuration.adoc
|
|
|
|
:_mod-docs-content-type: REFERENCE
|
|
[id="cpmso-yaml-provider-spec-openstack_{context}"]
|
|
= Sample {rh-openstack} provider specification
|
|
|
|
When you create a control plane machine set for an existing cluster, the provider specification must match the `providerSpec` configuration in the control plane machine custom resource (CR) that the installation program creates.
|
|
|
|
.Sample OpenStack `providerSpec` values
|
|
[source,yaml]
|
|
----
|
|
apiVersion: machine.openshift.io/v1
|
|
kind: ControlPlaneMachineSet
|
|
metadata:
|
|
name: cluster
|
|
namespace: openshift-machine-api
|
|
spec:
|
|
# ...
|
|
template:
|
|
# ...
|
|
spec:
|
|
providerSpec:
|
|
value:
|
|
apiVersion: machine.openshift.io/v1alpha1
|
|
cloudName: openstack
|
|
cloudsSecret:
|
|
name: openstack-cloud-credentials <1>
|
|
namespace: openshift-machine-api
|
|
flavor: m1.xlarge <2>
|
|
image: ocp1-2g2xs-rhcos
|
|
kind: OpenstackProviderSpec <3>
|
|
metadata:
|
|
creationTimestamp: null
|
|
networks:
|
|
- filter: {}
|
|
subnets:
|
|
- filter:
|
|
name: ocp1-2g2xs-nodes
|
|
tags: openshiftClusterID=ocp1-2g2xs
|
|
securityGroups:
|
|
- filter: {}
|
|
name: ocp1-2g2xs-master <4>
|
|
serverGroupName: ocp1-2g2xs-master
|
|
serverMetadata:
|
|
Name: ocp1-2g2xs-master
|
|
openshiftClusterID: ocp1-2g2xs
|
|
tags:
|
|
- openshiftClusterID=ocp1-2g2xs
|
|
trunk: true
|
|
userDataSecret:
|
|
name: master-user-data
|
|
----
|
|
<1> The secret name for the cluster. Do not change this value.
|
|
<2> The {rh-openstack} flavor type for the control plane.
|
|
<3> The {rh-openstack} cloud provider platform type. Do not change this value.
|
|
<4> The control plane machines security group. |