Enabling Windows Support for your Cluster

To enable Windows support for your cluster, complete the following steps:

Procedure

  1. Confirm that the AmazonEKSVPCResourceController managed 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"
            }
        ]
    }
    
  2. If AmazonEKSVPCResourceController managed policy is not attached to your EKS cluster IAM role, attach the AmazonEKSVPCResourceController managed 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
    
  3. Create a file named vpc-resource-controller-configmap.yaml to deploy ConfigMap with the following contents:
    
    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: amazon-vpc-cni
      namespace: kube-system
    data:
      enable-windows-ipam: "true"
    
  4. Apply the ConfigMap to your cluster.
    
    kubectl apply -f vpc-resource-controller-configmap.yaml