Skip to content

Commit c409ab8

Browse files
committed
apply ingress.yaml
1 parent 819a94b commit c409ab8

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pipeline {
4242
sh 'aws eks update-kubeconfig --region us-west-1 --name jenkins-cluster'
4343
sh 'kubectl apply -f deployment.yaml'
4444
sh 'kubectl apply -f service.yaml'
45+
sh 'kubectl apply -f ingress.yaml'
4546
}
4647
}
4748
}

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,19 @@ eksctl create cluster \
1111
## Setup Load Balancer (ALB)
1212
https://aws.amazon.com/premiumsupport/knowledge-center/eks-alb-ingress-controller-fargate/
1313

14+
```
1415
eksctl utils associate-iam-oidc-provider --cluster YOUR_CLUSTER_NAME --approve --region us-west-1
15-
16+
```
17+
```
1618
curl -o iam_policy.json https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.4.4/docs/install/iam_policy.json
17-
19+
```
20+
```
1821
aws iam create-policy \
19-
--policy-name AWSLoadBalancerControllerIAMPolicy \
20-
--policy-document file://iam_policy.json \
21-
--region us-west-1
22-
22+
--policy-name AWSLoadBalancerControllerIAMPolicy \
23+
--policy-document file://iam_policy.json \
24+
--region us-west-1
25+
```
26+
```
2327
eksctl create iamserviceaccount \
2428
--cluster=jenkins-cluster \
2529
--namespace=kube-system \
@@ -28,19 +32,19 @@ eksctl create iamserviceaccount \
2832
--override-existing-serviceaccounts \
2933
--region us-west-1 \
3034
--approve
31-
35+
```
36+
```
3237
helm repo add eks https://aws.github.io/eks-charts
3338
kubectl apply -k "github.com/aws/eks-charts/stable/aws-load-balancer-controller//crds?ref=master"
34-
39+
```
40+
```
3541
helm install aws-load-balancer-controller eks/aws-load-balancer-controller \
3642
--set clusterName=YOUR_CLUSTER_NAME \
3743
--set serviceAccount.create=false \
3844
--set region=YOUR_REGION_CODE \
3945
--set vpcId=<VPC_ID> \
4046
--set serviceAccount.name=aws-load-balancer-controller \
4147
-n kube-system
42-
43-
eksctl create fargateprofile --cluster jenkins-cluster --region us-west-1 --name octopus-underwater-app --namespace default
44-
48+
```
4549
## Jenkins plug-ins
4650
TODO

0 commit comments

Comments
 (0)