eksctlのconfig-file構造(v0.1.24)

https://github.com/weaveworks/eksctl/blob/0.1.24/pkg/apis/eksctl.io/v1alpha4/types.go

--config-fileを使うときのテンプレメモ(動作未確認)

exampleのyamlはあったが全項目網羅してそうなものが見当たらなかったので

まあしかしすぐに古くなる…


tmpl.yaml

apiVersion: eksctl.io/v1alpha4

kind: ClusterConfig

metadata:
name: string
region: string
version: string
tags:
string: string

nodeGroups:
- name: string
ami: string
amiFamily: string
instanceType: string
availabilityZones:
- string
tags:
string: string
privateNetworking: bool
securityGroups:
attachIDs:
- string
withShared: bool
withLocal: bool
desiredCapacity: int
minSize: int
maxSize: int
volumeSize: int
volumeType: string
maxPodsPerNode: int
labels:
string: string
allowSSH: bool
sshPublicKeyPath: string
SSHPublicKey:
- byte
sshPublicKeyName: string
iam:
attachPolicyARNs:
- string
instanceProfileARN: string
instanceRoleARN: string
instanceRoleName: string
withAddonPolicies:
imageBuilder: bool
autoScaler: bool
externalDNS: bool
PreBootstrapCommands:
- string
overrideBootstrapCommand: string
clusterDNS: string

iam:
serviceRoleARN: string

vpc:
id: string
cidr: ipNet
securityGroup: string
subnets:
private:
string:
id: string
cidr: ipNet
public:
string:
id: string
cidr: ipNet
extraCIDRs:
- ipNet
sharedNodeSecurityGroup: string

availabilityZones:
- string

status:
endpoint: string
certificateAuthorityData:
- byte
arn: string
stackName: string


これにない項目はおとなしくflagで付けましょう

具体的なほうはこっち

https://github.com/weaveworks/eksctl/tree/0.1.24/examples