cookbooks/mu-tools/recipes/eks.rb in cloud-mu-2.1.0beta vs cookbooks/mu-tools/recipes/eks.rb in cloud-mu-3.0.0beta
- old
+ new
@@ -143,10 +143,10 @@
not_if "test -f /usr/bin/aws-iam-authenticator"
end
["/var/lib/kubelet/kubeconfig", "/root/.kube/config"].each { |kubecfg|
template kubecfg do
- source "kubeconfig.erb"
+ source "kubeconfig-eks.erb"
variables(
:endpoint => endpoint,
:cluster => cluster,
:cacert => ca,
:rolearn => node['ec2']['iam_instance_profile']['arn'].sub(/:instance-profile\//, ":role/")