Created by the popular Alibaba architect on the entire network: k8s+Jenkins notes, full of high-quality dry goods

What is k8s?

Kubernetes is an open source platform for automated deployment, expansion, and operation and maintenance of container clusters .

The original intention of k8s is to cultivate an ecosystem of components and tools to help everyone reduce the burden of running applications on public and private clouds. In other words, make the construction and operation and maintenance of large-scale distributed applications easier (of course, the simpler The surface means more complicated internal details).

What is Jenkins?

Jenkins is an open source continuous integration (CI) tool that provides a user-friendly interface. It originated from Hudson (Hudson is commercial) and is mainly used for continuous and automatic construction/testing of software projects.

Jenkins occupies a very important role in our daily work, helping us save a lot of time for building. Some companies have operations and maintenance brothers to maintain Jenkins, if not, you can only do it yourself. As the saying goes, it's good to do it yourself, so this article starts from 0 to build your own Jenkins continuous platform. Mainly include, ordinary project construction , pipeline construction , multi-branch pipeline construction, and the construction results will be supplemented with DingTalk notification.

Learn Jenkins comprehensively, master Jenkins software installation and related environment configuration, master Jenkins to build web projects, SpringCloud microservice projects, and integrate Kubernetes to complete distributed construction. The following are necessary for mastering k8s and Jenkins

  • Understand continuous integration to build a Jenkins environment
  • Jenkins completes continuous integration of web projects
  • Jenkins integrates SonarQube, Email
  • Jenkins+Docker+SpringCloud completes continuous integration of microservices
  • Jenkins+Kubernetes completes the distributed construction of microservices

However , I learned k8s and Jenkins in the editor and found that there is no learning material that can integrate and use the two technical points. I read the major platform websites and found that I can really explain k8s and Jenkins very thoroughly. Under guidance, I got this Jenkins+Kubernetes note, which comprehensively explained Jenkins related knowledge. From the installation, deployment and environment configuration of Jenkins to Jenkins building web applications. Jenkins+Docker+SpringCloud microservices are continuously deployed, and distributed master-slave construction to Jenkins+Kubernetes. This note not only masters the continuous integration of Jenkins in small and medium-sized small and medium-sized projects, but also masters the distributed continuous integration of Jenkins in medium and large-scale Internet projects.

The first note: Kubernetes (K8s) study notes

Due to space reasons, in order to avoid affecting everyone's reading experience, only part of the content is shown in screenshots. The detailed and full version is stamped here for free: https://docs.qq.com/doc/DTlpqcU53c0JtdkZx

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

 

Theory

  • Understanding the cluster controller

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Understanding the cluster controller

  • Detailed cluster network

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Detailed cluster network

  • Principles of Cluster Scaling

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Principles of Cluster Scaling

  • Authentication and scheduling

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Authentication and scheduling

  • Three main points and one realization of cluster service

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Three main points and one realization of cluster service

  • Mirror pull

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Mirror pull

Practice

  • Cluster node is not offline

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Cluster node is not offline

 

  • Node offline sister article

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Node offline sister article

 

  • Why can't we delete the cluster namespace?

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Why can't we delete the cluster namespace?

  • Alibaba Cloud ACK product security group configuration management

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Alibaba Cloud ACK product security group configuration management

 

  • One-half live microservices

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

One-half live microservices

 

  • Summary of handling the miserable situation of Ca certificate expiration problem at two in the middle of the night

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Summary of handling the miserable situation of Ca certificate expiration problem at two in the middle of the night

The second note: Jenkins continuous integration entry to the master

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

 

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

 

1: Overview of continuous integration and Jenkins

  • Waterfall model and agile development
  • Components of continuous integration
  • Jenkins overview

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Introduction to Continuous Integration and Jenkins

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

What is continuous integration

Two: Jenkins installation and environment configuration

  • Gitlab build and configuration
  • Jenkins installation and plugin installation
  • Jenkins permission management
  • Jenkins credential management
  • Jenkins+Maven configuration

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Jenkins installation and continuous integration environment configuration

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Gitlab code hosting server installation

Three: Jenkins+Web project continuous integration

  • Jenkins creates a pipeline project
  • Jenkins pipeline script syntax
  • Commonly used Jenkins build triggers
  • Jenkins integrates SonarQube code review
  • Jenkins integrates Email to complete the release of the build results

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Jenkins build Maven project

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

 

Four: Jenkins+Docker+SpringCloud microservice project continuous integration

  • Docker basics
  • Dockerfile script to build Docker image
  • Docker private warehouse Harbor installation and use
  • Jenkins cluster deploys SpringCloud microservices

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Jenkins+Docker+SpringCloud microservice continuous integration

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

 

Five: Jenkins+Kubernetes+SpringCloud microservice project continuous integration

  • Jenkins distributed master-slave architecture
  • Jenkins and Kubernetes integration
  • Jenkins+Kubernetes completes the distributed construction of microservice projects

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Jenkins Master-Slave distributed construction

High quality and efficient!  Ali's internal ultra-high quality k8s+Jenkins notes, technology and actual combat fly together

Kubernates+Docker+Jenkins continuous integration architecture diagram

Friends in need quickly repost it, only like it! Collection! Then click here to get the full version for free: https://docs.qq.com/doc/DTlpqcU53c0JtdkZx

Guess you like

Origin blog.csdn.net/python8989/article/details/108759922