File tree Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,15 @@ Running InstaScale locally to an OSD cluster requires extra steps from the above
5151 - Key: ` token `
5252 - Value: ` <YOUR_API_TOKEN> `
5353 - Click Create
54+ ## Scaling Machines with a Self-Managed OCP Cluster using AWS
55+ To scale machines of a certain type you need to create a ` MachineSet ` . You can find a template [ here] ( /template/machineSetTemplate.yaml ) .
56+ - Fill out the necessary fields based on your Cluster and AWS configuration.
57+ - On your Cluster Dashboard go to ` Compute ` -> ` Create MachineSet ` .
58+ - Paste in your new ` MachineSet ` you created based off of the template and click ` Create ` .
59+ - Your ` MachineSet ` should now appear.
60+ - Attempt to scale machines of the same machine type as your ` MachineSet ` template using ` InstaScale ` .
61+ - The ` MachineSet ` replicas should increase by the number of replicas you have specified.
62+
5463## Testing
5564
5665Run tests with command:
Original file line number Diff line number Diff line change 1+ apiVersion : machine.openshift.io/v1beta1
2+ kind : MachineSet
3+ metadata :
4+ annotations :
5+ machine.openshift.io/GPU : <numberOfGpus>
6+ machine.openshift.io/memoryMb : <Memory>
7+ machine.openshift.io/vCPU : <CPUS>
8+ name : <MachineSetName>
9+ namespace : openshift-machine-api
10+ labels :
11+ machine.openshift.io/cluster-api-cluster : <cluster>
12+ spec :
13+ replicas : <numberOfReplicas>
14+ selector :
15+ matchLabels :
16+ machine.openshift.io/cluster-api-cluster : <cluster>
17+ machine.openshift.io/cluster-api-machineset : <machineSetName>
18+ template :
19+ metadata :
20+ labels :
21+ machine.openshift.io/cluster-api-cluster : <cluster>
22+ machine.openshift.io/cluster-api-machine-role : <machineRole>
23+ machine.openshift.io/cluster-api-machine-type : <machineType>
24+ machine.openshift.io/cluster-api-machineset : <machineSetName>
25+ spec :
26+ lifecycleHooks : {}
27+ metadata : {}
28+ providerSpec :
29+ value :
30+ userDataSecret :
31+ name : <userDataSecretName>
32+ placement :
33+ availabilityZone : <availabilityZone>
34+ region : <region>
35+ credentialsSecret :
36+ name : <CredentialSecretName>
37+ instanceType : <instanceType>
38+ metadata :
39+ creationTimestamp : null
40+ blockDevices :
41+ - ebs :
42+ encrypted : true
43+ iops : 0
44+ kmsKey :
45+ arn : ' '
46+ volumeSize : 120
47+ volumeType : gp3
48+ securityGroups :
49+ - filters :
50+ - name : ' tag:Name'
51+ values :
52+ - <securityGroupName>
53+ kind : AWSMachineProviderConfig
54+ metadataServiceOptions : {}
55+ tags :
56+ - name : kubernetes.io/cluster/<cluster>
57+ value : owned
58+ deviceIndex : 0
59+ ami :
60+ id : <amiID>
61+ subnet :
62+ filters :
63+ - name : ' tag:Name'
64+ values :
65+ - <subnetName>
66+ apiVersion : machine.openshift.io/v1beta1
67+ iamInstanceProfile :
68+ id : <iAmInstanceProfileID>
69+ status :
70+ availableReplicas : 0
71+ fullyLabeledReplicas : 0
72+ observedGeneration : 0
73+ readyReplicas : 0
74+ replicas : 0
75+
You can’t perform that action at this time.
0 commit comments