forked from neeltom92/infrastructure-istio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalb-load-balancer-controller
36 lines (30 loc) · 1.44 KB
/
alb-load-balancer-controller
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
* I create the ALB with eksctl, so to install ALB ingress controller follow the below steps incase you are also in ekctl, otherwise refer the steps mentioned here: https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.4/deploy/installation/
and choose the steps accordingly.
* before following the below steps ensure that the public and private subnets are tagged accordingly with proper values.
--
eksctl utils associate-iam-oidc-provider \
--region <region-code> \
--cluster <your-cluster-name> \
--approve
--
curl -o iam-policy.json https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.4.3/docs/install/iam_policy.json
--
aws iam create-policy \
--policy-name AWSLoadBalancerControllerIAMPolicy \
--policy-document file://iam-policy.json
--
eksctl create iamserviceaccount \
--cluster=<cluster-name> \
--namespace=kube-system \
--name=aws-load-balancer-controller \
--attach-policy-arn=arn:aws:iam::<AWS_ACCOUNT_ID>:policy/AWSLoadBalancerControllerIAMPolicy \
--override-existing-serviceaccounts \
--region <region-code> \
--approve
--
helm repo add eks https://aws.github.io/eks-charts
--
kubectl apply -k "github.com/aws/eks-charts/stable/aws-load-balancer-controller//crds?ref=master"
--
helm install aws-load-balancer-controller eks/aws-load-balancer-controller -n kube-system --set clusterName=<cluster-name> --set serviceAccount.create=false --set serviceAccount.name=aws-load-balancer-controller
--