Skip to content

Commit c3384b8

Browse files
oak2278brentley
authored andcommitted
Vjsikha 157 cicd challenge question (#172)
* Content review and edits. Added Challenge Questions * added challenge question for user to retrieve the elb URL * updated the shortcode to fix the launch button for codepipeline * Batch Processing (redux) (#133) * Batch Processing Workshop (all except advanced example) * Add advanced batch example * Updates based on feedback on PR-133 * Change S3 bucket creation to use AWSCLI * Add IAM policy for artifact S3 access * Add removal instructions for S3 IAM policy * Duplicate ACCOUNT_ID creation per code block where it's used * Clean S3 IAM policy steps * Fix error in ConfigMap for artifact repository (manual substitution) * Delete non-empty bucket * Link fixes (#135) * updating to support cloud9 dev environment * updating repo urls for consistency * commit the link fixes * Tracing with X-Ray module (#132) * Tracing with X-Ray module * Change urls to deployed version * Fix links (#137) * added documentation and examples to demo readiness and liveness probes (#131) * added documentation and examples to demo readiness and liveness probes * simplified text boxes for commands, added additional explanation about how probes work and tweaked readiness probe * added step to make readiness probe pass after failure * updated the folder structure to reflect http paths and guidelines * updated the pages to show and explain the yaml files instead of simply downloading the same * minor edits to add clarity * remove duplicate page (using.md/rolling_back.md) (#140) * updating to support cloud9 dev environment * updating repo urls for consistency * remove duplicate instructions page? * Dynamic Volume Provisioning hyperlink (#141) * adding calico chapter * deleting calico in cleanup step * changing notice from note(blue) to tip(green) * changing chapter weight to fit between example microservices and helm * adding uninstall calico text * separated command from the output * reverting changes to package-lock.json * adding all changes except yaml creation * changing calico resources from links to local files * moved cloning the repo from prereqs to calico chapter * changed dynamic volue hyperlink to k8s doc * Update _index.md (#144) minor grammar changes * Challenge question and answer to Monitoring Chapter (#146) * adding monitoring using prometheus & grafana chapter * changing draft: false * minor change to grafana dashboards * adding challenge question & offering solution * formatting changes - removed for re-emphasizing * minor change with relative links * Remove region (#148) * Remove region * fixing backticks * adding a region selector (#154) * Added challenge question to installnginx.md (#145) * Added challenge question to installnginx.md Challenge question provides clues for the correct helm install syntax. Workshop participant can either figure out the syntax themselves or expand the hidden text for the correct command. * Updated Challenge Formatting and Module Wording Changed the formatting of the challenge to match the requested styling. Made the warning about the ELB creation time more obvious. Miscellaneous wording corrections. * Istiotweaks (#153) * Update _index.md Fixing some grammar and typos. * Update introduction.md Fixed some formatting and grammar. * Update install.md Cleaning up formatting and grammar. * Update deploy.md Fixed grammar and formatting. * Update routing.md Grammar and typo fixes. * Update visualize.md fixed some grammar and typos * Update cleanup.md Cleaning up grammar and typos * Update routing.md Fixed error language message to better illustrate what to expect. * Update _index.md Removing callout * fixing typo in health checks (#155) * adding monitoring using prometheus & grafana chapter * changing draft: false * minor change to grafana dashboards * adding challenge question & offering solution * formatting changes - removed for re-emphasizing * minor change with relative links * fixing typo in health checks chapter * minor improvements in health check chapter * update Batch cleanup.md (#142) Added command to map $ROLE_NAME in case this was lost * Simplify CFN stack creation (#156) * Calico logo, note in StatefulSets -- Test scaling and Batch -- simple workflow (#143) * adding calico chapter * deleting calico in cleanup step * changing notice from note(blue) to tip(green) * changing chapter weight to fit between example microservices and helm * adding uninstall calico text * separated command from the output * reverting changes to package-lock.json * adding all changes except yaml creation * changing calico resources from links to local files * moved cloning the repo from prereqs to calico chapter * changed dynamic volue hyperlink to k8s doc * changed calico chapter index image to official project calico logo * added a note for pods scaling duration * replaced workflow name from command with placeholder * improved changes introduced in commit 5f627f6 * added challenge question for user to retrieve the elb URL * resolved conflicts after rebasing from master * added hint to challenge question * Content review and edits. Added Challenge Questions (#147) * fixed typo in role name. moved challenge question. cleaned up typos. * reverted cf-launch.html changes * reverted codepipeline.md changes for launch button
1 parent 34f3298 commit c3384b8

File tree

6 files changed

+26
-29
lines changed

6 files changed

+26
-29
lines changed

content/codepipeline/change.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ date: 2018-10-087T08:30:11-07:00
44
weight: 15
55
draft: false
66
---
7+
#### Update Our Application
78

89
So far we have walked through setting up CI/CD for EKS using AWS CodePipeline and now we are going to
910
make a change to the GitHub repository so that we can see a new release built and delivered.
@@ -22,21 +23,11 @@ You should leave the master branch selected.
2223
The main.go application needs to be compiled, so please ensure that you don't accidentally break the build :)
2324
{{% /notice %}}
2425

25-
2626
![GitHub Modify](/images/codepipeline/github_modify.png)
2727

2828
After you modify and commit your change in GitHub, in approximately one minute you will see a new build triggered in the [AWS Management Console](https://console.aws.amazon.com/codesuite/codepipeline/pipelines)
29+
![CodePipeline Running](/images/codepipeline/codepipeline_building.png)
2930

30-
![CodePiepline Running](/images/codepipeline/codepipeline_building.png)
31-
32-
Once the service is built and delivered, run the following command to get the Elastic Load Balancer (ELB) endpoint and open it in a browser.
33-
If the message is not updated immediately, give Kubernetes some time to deploy the change.
34-
35-
```
36-
kubectl get services hello-k8s -o wide
37-
```
38-
39-
{{% notice info %}}
40-
The EXTERNAL-IP column contains a value that ends with "elb.amazonaws.com" - the full value is the DNS record.
41-
{{% /notice %}}
31+
#### Confirm the Change
4232

33+
If you still have the ELB URL open in your browser, refresh to confirm the update. If you need to retrieve the URL again, use `kubectl get services hello-k8s -o wide`

content/codepipeline/cleanup.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ weight: 16
55
draft: false
66
---
77

8-
Congratulations on completing the CI/CD with CodePipline module.
8+
Congratulations on completing the CI/CD with CodePipeline module.
99

1010
This module is not used in subsequent steps, so you can remove the resources now, or at the end of the workshop.
1111

@@ -17,13 +17,13 @@ kubectl delete deployments hello-k8s
1717
kubectl delete services hello-k8s
1818
```
1919

20-
Next, we are going to delete the CloudFormation stack created. Open CloudFormation the [AWS Managemnt Console](https://console.aws.amazon.com/cloudformation).
20+
Next, we are going to delete the CloudFormation stack created. Open CloudFormation the [AWS Management Console](https://console.aws.amazon.com/cloudformation).
2121

2222
Check the box next to the **eksws-codepipeline** stack, select the **Actions** dropdown menu and then click **Delete stack**:
2323

2424
![CloudFormation Delete](/images/codepipeline/cloudformation_delete.png)
2525

26-
Now we are going to delete the [ECR respository](https://console.aws.amazon.com/ecs/home#/repositories):
26+
Now we are going to delete the [ECR repository](https://console.aws.amazon.com/ecs/home#/repositories):
2727

2828
![ECR Delete](/images/codepipeline/ecr_delete.png)
2929

@@ -35,7 +35,7 @@ select the bucket, then empty the bucket and finally delete the bucket:
3535
Finally, we are going to delete the IAM role created for CodeBuild to permit changes to the EKS cluster:
3636

3737
```
38-
aws iam delete-role-policy --role-name EksWorkshopCodeBuilKubectldRole --policy-name eks-describe
38+
aws iam delete-role-policy --role-name EksWorkshopCodeBuildKubectlRole --policy-name eks-describe
3939
40-
aws iam delete-role --role-name EksWorkshopCodeBuilKubectldRole
40+
aws iam delete-role --role-name EksWorkshopCodeBuildKubectlRole
4141
```

content/codepipeline/codepipeline.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,23 @@ For the status of the service, run the following command:
5656
kubectl describe service hello-k8s
5757
```
5858

59-
Once the service is built and delivered, run the following command to get the Elastic Load Balancer (ELB) endpoint and open it in a browser.
59+
#### Challenge:
60+
**How can we view our exposed service?**
6061

61-
```
62-
kubectl get services hello-k8s -o wide
63-
```
62+
**HINT:** Which kubectl command will get you the Elastic Load Balancer (ELB) endpoint for this app?
63+
64+
{{%expand "Expand here to see the solution" %}}
65+
66+
Once the service is built and delivered, we can run the following command to get the Elastic Load Balancer (ELB) endpoint and open it in a browser.
67+
If the message is not updated immediately, give Kubernetes some time to deploy the change.
68+
69+
```
70+
kubectl get services hello-k8s -o wide
71+
```
6472

6573
{{% notice info %}}
6674
This service was configured with a [LoadBalancer](https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/) so,
6775
an [AWS Elastic Load Balancer](https://aws.amazon.com/elasticloadbalancing/) is launched by Kubernetes for the service.
6876
The EXTERNAL-IP column contains a value that ends with "elb.amazonaws.com" - the full value is the DNS address.
6977
{{% /notice %}}
70-
71-
72-
78+
{{% /expand %}}

content/codepipeline/configmap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Once the ConfigMap includes this new role, kubectl in the CodeBuild stage of the
1313
```
1414
ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
1515
16-
ROLE=" - rolearn: arn:aws:iam::$ACCOUNT_ID:role/EksWorkshopCodeBuilKubectldRole\n username: build\n groups:\n - system:masters"
16+
ROLE=" - rolearn: arn:aws:iam::$ACCOUNT_ID:role/EksWorkshopCodeBuildKubectlRole\n username: build\n groups:\n - system:masters"
1717
1818
kubectl get -n kube-system configmap/aws-auth -o yaml | awk "/mapRoles: \|/{print;print \"$ROLE\";next}1" > /tmp/aws-auth-patch.yml
1919

content/codepipeline/role.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ TRUST="{ \"Version\": \"2012-10-17\", \"Statement\": [ { \"Effect\": \"Allow\",
2323
2424
echo '{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "eks:Describe*", "Resource": "*" } ] }' > /tmp/iam-role-policy
2525
26-
aws iam create-role --role-name EksWorkshopCodeBuilKubectldRole --assume-role-policy-document "$TRUST" --output text --query 'Role.Arn'
26+
aws iam create-role --role-name EksWorkshopCodeBuildKubectlRole --assume-role-policy-document "$TRUST" --output text --query 'Role.Arn'
2727
28-
aws iam put-role-policy --role-name EksWorkshopCodeBuilKubectldRole --policy-name eks-describe --policy-document file:///tmp/iam-role-policy
28+
aws iam put-role-policy --role-name EksWorkshopCodeBuildKubectlRole --policy-name eks-describe --policy-document file:///tmp/iam-role-policy
2929
```

layouts/shortcodes/cf-launch.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<a
2-
href="https://console.aws.amazon.com/cloudformation/home?#/stacks/quickcreate?stackName={{ .Get 1 }}&templateURL=https://s3.amazonaws.com/{{ $.Site.Params.template_bucket }}/templates/{{ $.Site.Params.branch }}/{{ .Get 0 }}"
2+
href="https://console.aws.amazon.com/cloudformation/home?#/stacks/quickcreate?stackName={{ .Get 1 }}&templateURL=https://s3.amazonaws.com/{{ $.Site.Params.template_bucket }}/templates/{{ $.Site.Params.branch }}/{{ .Get 0 }}"
33
target="_blank" class="btn btn-default">
44
<i class="fas fa-cloud-upload-alt"></i>
55
Launch

0 commit comments

Comments
 (0)