File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ pipeline {
42
42
sh ' aws eks update-kubeconfig --region us-west-1 --name jenkins-cluster'
43
43
sh ' kubectl apply -f deployment.yaml'
44
44
sh ' kubectl apply -f service.yaml'
45
+ sh ' kubectl apply -f ingress.yaml'
45
46
}
46
47
}
47
48
}
Original file line number Diff line number Diff line change @@ -11,15 +11,19 @@ eksctl create cluster \
11
11
## Setup Load Balancer (ALB)
12
12
https://aws.amazon.com/premiumsupport/knowledge-center/eks-alb-ingress-controller-fargate/
13
13
14
+ ```
14
15
eksctl utils associate-iam-oidc-provider --cluster YOUR_CLUSTER_NAME --approve --region us-west-1
15
-
16
+ ```
17
+ ```
16
18
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
+ ```
18
21
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
+ ```
23
27
eksctl create iamserviceaccount \
24
28
--cluster=jenkins-cluster \
25
29
--namespace=kube-system \
@@ -28,19 +32,19 @@ eksctl create iamserviceaccount \
28
32
--override-existing-serviceaccounts \
29
33
--region us-west-1 \
30
34
--approve
31
-
35
+ ```
36
+ ```
32
37
helm repo add eks https://aws.github.io/eks-charts
33
38
kubectl apply -k "github.com/aws/eks-charts/stable/aws-load-balancer-controller//crds?ref=master"
34
-
39
+ ```
40
+ ```
35
41
helm install aws-load-balancer-controller eks/aws-load-balancer-controller \
36
42
--set clusterName=YOUR_CLUSTER_NAME \
37
43
--set serviceAccount.create=false \
38
44
--set region=YOUR_REGION_CODE \
39
45
--set vpcId=<VPC_ID> \
40
46
--set serviceAccount.name=aws-load-balancer-controller \
41
47
-n kube-system
42
-
43
- eksctl create fargateprofile --cluster jenkins-cluster --region us-west-1 --name octopus-underwater-app --namespace default
44
-
48
+ ```
45
49
## Jenkins plug-ins
46
50
TODO
You can’t perform that action at this time.
0 commit comments