项目作者: anyulled
项目描述 :
Capstone Project - Udacity DevOps Nanodegree
高级语言: Java
项目地址: git://github.com/anyulled/capstone.git
Capstone Project - Udacity DevOps Nanodegree
Steps in Completing Your Project
Step 1: Propose and Scope the Project
Configured a Java application under the src
folder.
Blue/green has been chosen as a deployment strategy.
The Jenkins pipeline will perform the following operations:
- Compile the application.
- Execute tests.
- Perform linting via the checkstyle plugin.
- Build a docker image.
- Push the docker image to the docker registry.
- Deploy the container to kubernetes on blue and/or green service.
Step 2: Use Jenkins, and implement blue/green or rolling deployment.
Instructions here
Step 3: Pick AWS Kubernetes as a Service, or build your own Kubernetes cluster.
Using EKS instead of cloudFormation or Ansible, which will create 2 separate cloudFormation stacks to configure the cluster itself, and the EC2 Instances for the node group.
EKS Cluster


Step 4: Build your pipeline
I preferred to print test error instead of linting errors, as with Java you get a detailed report on the jenkins job page


Step 5: Test your pipeline

EC2 Instances

Blue deployment


Green deployment

