mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Fix EKS addons (#153)
Add VPC CNI and CoreDNS addons to the Pulumi program. Fix addon versions per AWS documentation. Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
This commit is contained in:
parent
a6e33550d8
commit
0260303b2c
1 changed files with 35 additions and 2 deletions
|
|
@ -77,12 +77,45 @@ func main() {
|
|||
return err
|
||||
}
|
||||
|
||||
// Install the VPC CNI addon
|
||||
_, err = eks.NewAddon(ctx, "aws-vpc-cni", &eks.AddonArgs{
|
||||
ClusterName: testCluster.Name,
|
||||
AddonName: pulumi.String("vpc-cni"),
|
||||
AddonVersion: pulumi.String("v1.15.4-eksbuild.1"),
|
||||
ResolveConflictsOnUpdate: pulumi.String("OVERWRITE"),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Install the CoreDNS addon
|
||||
_, err = eks.NewAddon(ctx, "coredns", &eks.AddonArgs{
|
||||
ClusterName: testCluster.Name,
|
||||
AddonName: pulumi.String("coredns"),
|
||||
AddonVersion: pulumi.String("v1.10.1-eksbuild.6"),
|
||||
ResolveConflictsOnUpdate: pulumi.String("OVERWRITE"),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Install the AWS EBS CSI addon
|
||||
_, err = eks.NewAddon(ctx, "aws-ebs-csi", &eks.AddonArgs{
|
||||
ClusterName: testCluster.Name,
|
||||
AddonName: pulumi.String("aws-ebs-csi-driver"),
|
||||
AddonVersion: pulumi.String("v1.24.0-eksbuild.1"),
|
||||
ResolveConflictsOnUpdate: pulumi.String("PRESERVE"),
|
||||
AddonVersion: pulumi.String("v1.25.0-eksbuild.1"),
|
||||
ResolveConflictsOnUpdate: pulumi.String("OVERWRITE"),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Install the Kube-Proxy addon
|
||||
_, err = eks.NewAddon(ctx, "kube-proxy", &eks.AddonArgs{
|
||||
ClusterName: testCluster.Name,
|
||||
AddonName: pulumi.String("kube-proxy"),
|
||||
AddonVersion: pulumi.String("v1.28.2-eksbuild.2"),
|
||||
ResolveConflictsOnUpdate: pulumi.String("OVERWRITE"),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue