eks-anywhere icon indicating copy to clipboard operation
eks-anywhere copied to clipboard

eksctl-anywhere v0.19.0 doesn't honor custom machine template in the cluster config file

Open ygao-armada opened this issue 1 year ago • 2 comments

What happened:

I try to createe EKS anywhere cluster for bare metal with following versions:

  • Admin Ubuntu 20.04
  • eksctl 0.173
  • eksctl-anywhere v0.19.0

While in old environments (eksctl-anywhere v0.18.2 and v0.18.7), everything works. However, in new environment (eksctl-anywhere v0.19.0), I find the machine template in the cluster config is ignored, and the default template is used instead. Here is the code piece of the config:

---
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: TinkerbellMachineConfig
metadata:
  name: mgmt03-cp
spec:
  hardwareSelector:
    type: cp
  osFamily: ubuntu
  templateRef:
    kind: TinkerbellTemplateConfig
    name: mgmt03
  users:
  - name: ec2-user
    sshAuthorizedKeys:
    - ssh-rsa AAA...

---
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: TinkerbellTemplateConfig
metadata:
  name: mgmt03
spec:
  template:
    global_timeout: 6000
    id: ""
    name: mgmt03
    tasks:
    - actions:
      - environment:
...

v0.19.2 has the same issue.

What you expected to happen:

custom machine template is used.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • EKS Anywhere Release: v0.19.0 -- v0.19.2
  • EKS Distro Release:

ygao-armada avatar Mar 09 '24 23:03 ygao-armada

Hey @ygao-armada , thanks for the report. I will investigate and report back here!

jacobweinstock avatar Apr 11 '24 15:04 jacobweinstock

Hello @ygao-armada, we are working on a fix for this issue and will have it out in the next patch release. Thank you for the report.

mitalipaygude avatar Apr 11 '24 23:04 mitalipaygude