From 499d918b957fa7ad9949f4d79752964526291d81 Mon Sep 17 00:00:00 2001 From: gthao313 Date: Wed, 30 Oct 2024 05:09:55 +0000 Subject: [PATCH] ec2-resource: add `credential-providers` and `no-proxy` settings --- .../src/bin/ec2-resource-agent/ec2_provider.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/bottlerocket/agents/src/bin/ec2-resource-agent/ec2_provider.rs b/bottlerocket/agents/src/bin/ec2-resource-agent/ec2_provider.rs index c6ab1948..1eb0df46 100644 --- a/bottlerocket/agents/src/bin/ec2-resource-agent/ec2_provider.rs +++ b/bottlerocket/agents/src/bin/ec2-resource-agent/ec2_provider.rs @@ -469,7 +469,18 @@ ignore-waves = true api-server = "{}" cluster-name = "{}" cluster-certificate = "{}" -cluster-dns-ip = "{}""#, +cluster-dns-ip = "{}" + +[settings.kubernetes.credential-providers.ecr-credential-provider] +enabled = true +cache-duration = "30m" +image-patterns = [ + "*.dkr.ecr.us-east-2.amazonaws.com", + "*.dkr.ecr.us-west-2.amazonaws.com" +] + +[settings.network] +no-proxy = ["localhost", "127.0.0.1"]"#, endpoint .as_ref() .context(memo, "Server endpoint is required for eks clusters.")?,