Best Practice of DevOps for Develop Microservice - I

Posted 仗剑走云端

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Best Practice of DevOps for Develop Microservice - I相关的知识,希望对你有一定的参考价值。

Below is an architecture for setup an DevOps automation framework when we develop microservice application, this is a virtual project, only used for study k8s and develop micro-service application purpose. will keep update detailed steps for the whole project.

The project target:

  1. Develop automation script to provision kubernetes cluster VM using oracle public restful api

  2. Using ansible playbooks to setup k8s cluster and was able to support scale out

  3. Develop micro-service application and deploy those application in k8s cluster

  4. End User can access mico-service application from intranet/internet

All above appliation code will integrate and delivery using DevOps framework in side left

The document will include how to configure git client, how to setup jenkins, how to setup UCD, how to deploy micro-service to k8s

Main Concepts

DevOps (a clipped compound of "development" and "operations") is a software engineering culture and practice that aims at unifying software development (Dev) and software operation (Ops). The main characteristic of the DevOps movement is to strongly advocate automation and monitoring at all steps of software construction, from integration,  testing, releasing to deployment and infrastructure management. DevOps aims at shorter development cycles, increased deployment frequency, and more dependable releases, in close alignment with business objectives. [From https://en.wikipedia.org/wiki/DevOps]

Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications.

CI/CD or CICD may refer to the combined practices of continuous integration and continuous delivery.[1][2]. There are several tools which allows to implement CI/CD practices, such as GitLab.

Docker Build, Manage and Secure you apps anywere, building and deploying new applications is faster with containers. Docker containers wrap up software and its dependencies into a standardized unit for software development that includes everything it needs to run: code, runtime, system tools and libraries. This guarantees that your application will always run the same and makes collaboration as simple as sharing a container image.

以上是关于Best Practice of DevOps for Develop Microservice - I的主要内容,如果未能解决你的问题,请参考以下文章

KVM Best practice

Dockerfile Security Best Practice

Best Practice API

MongoDB Best Practice

React 生产模式 Best Practice

OSSIM best practice 顺利登上美国主力电商平台