...
Code Block |
---|
|
eksctl create cluster --name <cluster_name>poccluster |
The following tools are required to complete the integration setup:
...
Code Block |
---|
|
oidc_id=$(aws eks describe-cluster --name $cluster_namepoccluster --query "cluster.identity.oidc.issuer" --output text | cut -d '/' -f 5)
aws iam list-open-id-connect-providers | grep $oidc_id | cut -d "/" -f4 |
...
Code Block |
---|
|
eksctl utils associate-iam-oidc-provider --cluster <cluster_name>poccluster --approve |
Run this command to the inline IAM policy to a JSON file named cni_iam.json
:
...
Code Block |
---|
|
eksctl update iamserviceaccount \ (ivan@isim-dev2.us-west-1.eksctl.io/default)
--name aws-node \
--namespace kube-system \
--cluster <cluster_name>poccluster \
--attach-policy-arn arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy \
--attach-policy-arn "${new_policy_arn}" \
--approve |