apiVersion: machine.openshift.io/v1beta1
kind: MachineSet
metadata:
labels:
machine.openshift.io/cluster-api-cluster: <infrastructure_ID>
machine.openshift.io/cluster-api-machine-role: <node_role>
machine.openshift.io/cluster-api-machine-type: <node_role>
name: <infrastructure_ID>-<node_role>
namespace: openshift-machine-api
spec:
replicas: <number_of_replicas>
selector:
matchLabels:
machine.openshift.io/cluster-api-cluster: <infrastructure_ID>
machine.openshift.io/cluster-api-machineset: <infrastructure_ID>-<node_role>
template:
metadata:
labels:
machine.openshift.io/cluster-api-cluster: <infrastructure_ID>
machine.openshift.io/cluster-api-machine-role: <node_role>
machine.openshift.io/cluster-api-machine-type: <node_role>
machine.openshift.io/cluster-api-machineset: <infrastructure_ID>-<node_role>
spec:
providerSpec:
value:
apiVersion: openstackproviderconfig.openshift.io/v1alpha1
cloudName: openstack
cloudsSecret:
name: openstack-cloud-credentials
namespace: openshift-machine-api
flavor: <nova_flavor>
image: <glance_image_name_or_location>
serverGroupID: <optional_UUID_of_server_group>
kind: OpenstackProviderSpec
networks:
- filter: {}
subnets:
- filter:
name: <subnet_name>
tags: openshiftClusterID=<infrastructure_ID>
primarySubnet: <rhosp_subnet_UUID>
securityGroups:
- filter: {}
name: <infrastructure_ID>-worker
serverMetadata:
Name: <infrastructure_ID>-worker
openshiftClusterID: <infrastructure_ID>
tags:
- openshiftClusterID=<infrastructure_ID>
trunk: true
userDataSecret:
name: worker-user-data
availabilityZone: <optional_openstack_availability_zone>
apiVersion : machine.openshift.io/v1beta1
kind : MachineSet
metadata :
labels :
machine.openshift.io/cluster-api-cluster : <infrastructure_ID> 1
machine.openshift.io/cluster-api-machine-role : <node_role> 2
machine.openshift.io/cluster-api-machine-type : <node_role> 3
name : <infrastructure_ID> - <node_role> 4
namespace : openshift- machine- api
spec :
replicas : <number_of_replicas>
selector :
matchLabels :
machine.openshift.io/cluster-api-cluster : <infrastructure_ID> 5
machine.openshift.io/cluster-api-machineset : <infrastructure_ID> - <node_role> 6
template :
metadata :
labels :
machine.openshift.io/cluster-api-cluster : <infrastructure_ID> 7
machine.openshift.io/cluster-api-machine-role : <node_role> 8
machine.openshift.io/cluster-api-machine-type : <node_role> 9
machine.openshift.io/cluster-api-machineset : <infrastructure_ID> - <node_role> 10
spec :
providerSpec :
value :
apiVersion : openstackproviderconfig.openshift.io/v1alpha1
cloudName : openstack
cloudsSecret :
name : openstack- cloud- credentials
namespace : openshift- machine- api
flavor : <nova_flavor>
image : <glance_image_name_or_location>
serverGroupID : <optional_UUID_of_server_group> 11
kind : OpenstackProviderSpec
networks : 12
- filter : { }
subnets :
- filter :
name : <subnet_name>
tags : openshiftClusterID=<infrastructure_ID>
primarySubnet : <rhosp_subnet_UUID> 13
securityGroups :
- filter : { }
name : <infrastructure_ID> - worker
serverMetadata :
Name : <infrastructure_ID> - worker
openshiftClusterID : <infrastructure_ID>
tags :
- openshiftClusterID=<infrastructure_ID>
trunk : true
userDataSecret :
name : worker- user- data 14
availabilityZone : <optional_openstack_availability_zone>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow