-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1dc4c0
commit a3ad76c
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM nginx:alpine | ||
|
||
RUN echo "My name is dongdorrong-nginx" > /usr/share/nginx/html/index.html ; \ | ||
RUN echo "Welcome to dongdorrong-nginx" > /usr/share/nginx/html/index.html ; \ | ||
apk update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/bin/bash | ||
|
||
aws eks update-kubeconfig --region ap-northeast-2 --name dongdorrong-eks-pxd24W1T | ||
aws eks update-kubeconfig --region ap-northeast-2 --name dongdorrong-eks-QZEww6vy | ||
|
||
curl -o iam_policy.json https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.4.4/docs/install/iam_policy.json | ||
|
||
aws iam create-policy --policy-name AWSLoadBalancerControllerIAMPolicy --policy-document file://iam_policy.json | ||
|
||
eksctl create iamserviceaccount --cluster=dongdorrong-eks-pxd24W1T --namespace=kube-system --name=aws-load-balancer-controller --role-name "AmazonEKSLoadBalancerControllerRole" --attach-policy-arn=arn:aws:iam::252462902626:policy/AWSLoadBalancerControllerIAMPolicy --approve | ||
eksctl create iamserviceaccount --cluster=dongdorrong-eks-QZEww6vy --namespace=kube-system --name=aws-load-balancer-controller --role-name "AmazonEKSLoadBalancerControllerRole" --attach-policy-arn=arn:aws:iam::252462902626:policy/AWSLoadBalancerControllerIAMPolicy --approve | ||
|
||
helm install aws-load-balancer-controller eks/aws-load-balancer-controller -n kube-system --set clusterName=dongdorrong-eks-pxd24W1T --set serviceAccount.create=false --set serviceAccount.name=aws-load-balancer-controller | ||
helm install aws-load-balancer-controller eks/aws-load-balancer-controller -n kube-system --set clusterName=dongdorrong-eks-QZEww6vy --set serviceAccount.create=false --set serviceAccount.name=aws-load-balancer-controller | ||
|
||
kubectl get deployment -n kube-system aws-load-balancer-controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters