Is it possible to retrieve EKS ClusterConfig yaml file used to create eks cluster with eksctl

8/18/2020

So if the cluster was created with the following command

eksctl create cluster  -f config/prod.yaml

prod.yaml

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
....

How to obtain a current version of the prod.yaml if that file was lost (not accessible anymore)?

-- DmitrySemenov
amazon-eks
eksctl
kubernetes

1 Answer

8/18/2020

The ClusterConfig is not stored inside the cluster currently. So if you lose it you can not get it back from the cluster. There is an open issue to support storing that as a configMap.

Having said that you should probably store it in a version control system to avoid losing it even if the feature to store the ClusterConfig as a ConfigMap is implemented sometime in future.

-- Arghya Sadhu
Source: StackOverflow