Enabling Windows Support for your Cluster
To enable Windows support for your cluster, complete the following steps:
Procedure
-
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" } ] }
-
If
AmazonEKSVPCResourceController
managed policy is not attached to your EKS cluster IAM role, attach theAmazonEKSVPCResourceController
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
-
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"
-
Apply the
ConfigMap
to your cluster.kubectl apply -f vpc-resource-controller-configmap.yaml