Closed mattburgess closed 1 year ago
I see that your AWSMachineClass
has the following field used
nodeTemplate:
capacity:
cpu: 2
gpu: 0
memory: 8
instanceType: m6i.large
region: eu-west-1
zone: eu-west-1a
This was introduced only in MachineClass
so it won't be carried over during migration if you specify in AWSMachineClass
. I still have to investigate why the problem of migration is happening, but just wanted to clarify on this.
Also we will make provider specific machineClass out of support from next release mcm v0.49.0 , so you should switch to MachineClass
now.
Thanks for taking a look at this @himanshu-kun. We needed to add that nodeTemplate
to the AWSMachineClass
otherwise cluster-autoscaler-0.19 and later couldn't scale a node group (MachineDeployment
) from 0.
We're in the process of migrating over to MachineClass
so that we can get onto a modern version of cluster-autoscaler which has some important fixes that we'd like.
otherwise cluster-autoscaler-0.19 and later couldn't scale a node group (MachineDeployment) from 0.
it can , actually ,if you add this nodeTemplate to MachineClass
.
Given that you are already migrating over to MachineClass
, it would make sense to close the issue , let me know if you have concerns.
/ping @mattburgess
@mattburgess ℹ️ please take some time to help himanshu-kun or redirect to someone else if you can't.
Sure, happy to close as our migration to MachineClasses is now underway.
What happened:
We have an
AWSMachineClass
,deprecated-mcm-integration-test
and aMachineDeployment
,deprecated-mcm-integration-test
which are both applied to the cluster during our integration tests. Although MCM is successfully able to launch instances, we see the following in the logs:In addition, we don't see a
MachineClass
,deprecated-mcm-integration-test
created in the cluster as we'd expect following a successful migration.What you expected to happen:
We'd expect to see the
AWSMachineClass
successfully migrated to aMachineClass
with no error logs.We have
--v=3
set to try to get as much logging out as possible but we don't appear to see any logs about attempts to perform migrations. This is hampering our ability to investigate this ourselves.How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
We've manually applied a MachineClass using all the same parameters as the
AWSMachineClass
contains and that is correctly created in the cluster.Environment:
Kubernetes: v1.22.17 MCM: 0.48.1 MCM-Provider-AWS: 0.17.0