Enabling Windows Support for your Cluster
To enable Windows support for your cluster, complete the following steps:
Procedure
-
Confirm that the
AmazonEKSVPCResourceControllermanaged policy is attached to your EKS cluster IAM role.{ "AttachedPolicies": [ { "PolicyName": "AmazonEKSClusterPolicy", "PolicyArn": "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy" }, { "PolicyName": "AmazonEKSVPCResourceController", "PolicyArn": "arn:aws:iam::aws:policy/AmazonEKSVPCResourceController" } ] } -
If
AmazonEKSVPCResourceControllermanaged policy is not attached to your EKS cluster IAM role, attach theAmazonEKSVPCResourceControllermanaged policy to your Amazon EKS cluster IAM role. Replace YourEksClusterRole with your cluster role name.aws iam attach-role-policy --role-name YourEksClusterRole --policy-arn arn:aws:iam::aws:policy/AmazonEKSVPCResourceController -
Create a file named vpc-resource-controller-configmap.yaml
to deploy
ConfigMapwith the following contents:apiVersion: v1 kind: ConfigMap metadata: name: amazon-vpc-cni namespace: kube-system data: enable-windows-ipam: "true" -
Apply the
ConfigMapto your cluster.kubectl apply -f vpc-resource-controller-configmap.yaml