- ASSIGNMENT OBJECTIVES HAS NOT YET BEEN FINALIZED.
- DO NOT START WORKING ON IT UNTIL INSTRUCTED IN THE CLASS.
|Monday||06:00PM on 02/25/2019|
Individual assignment weightage on course grade of this assignment is 10%.
Ask all your questions on Piazza. Assign assignment3 tag to your posts.
To keep your AWS credit usage to minimum, please stop terminate your k8s stack and other cloud resources when you are done working on it.
The objective of this assignment is get the CSYE 6225 web application running on Kubernetes cluster.
The cloud native application built as in CSYE 6225 requires a relational database and S3 bucket to work. Fort this part of the assignment, you will create a playbook
setup-cloud-resources.yaml which will create any and all resources needed such as RDS, S3, IAM roles, policies, etc. Playbook
teardown-cloud-resources.yaml should delete all resources created by
setup-cloud-resources.yaml. Your RDS instance can be in the same subnet as your Kubernetes nodes.
Update your web application so that endpoints that use the S3 buckets and RDS instance can now work.
Configuration & Secrets¶
Bucket name and credentials along with RDS connection info will now be provided to the web application through Kubernetes secrets and configuration map.
Kubernetes Object Spec for ReplicationController¶
Web application will now be deployed using ReplicationController. Create a ReplicationController spec to run 3 replicas. Each web application container should be limited to
500m CPU and
Liveness & Readiness Probe¶
Implement HTTP based Readiness and Liveness probles. Both probes should return OK once following conditions are met:
- Application can connect to database and run a simple query.
- Application can access S3 bucket.
Service & LoadBalancer¶
Create a load balancer service for your web application.
Assignment will be considered late if commits are made to
feature branch after due date.
- All work for this assignment must be done on assignment3 feature branch and merged to master when you are dev complete.
- All team member’s feature and master branches must be in-sync.
Following guidelines are for information only. They are subject to change at the discretion of the instructor and TA.
- Demonstrate that your deliverables have met assignment objectives.