Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the landing of enterprise CI or CD with Jenkins plus k8s

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about Jenkins plus K8s how to achieve enterprise CI or CD landing, the editor feels very practical, so share with you to learn, I hope you can get something after reading this article, say no more, follow the editor to have a look.

I. Overview 1.1. Introduction to the environment.

We use AWS's EC2 to build our cluster, the installation method uses kubeadm to install, if you use binary installation, you can refer to my relevant documentation.

System version: ubuntu 16.04

K8s version: 1.17.1

Docker version: 18.06-ce

1.2. Flow chart

1.3.Cluster configuration name configure intranet IP external network IPk8s-master2 core 4GB172.31.20.18454.226.118.74k8s-node12 core 4GB172.31.27.6952.90.221.230k8s-node22 core 4GB172.31.30.93.85.219.119

II. K8s deployment 2.1, install docker

To install the source, you can refer to the official document https://docs.docker.com/install/linux/docker-ce/ubuntu/. I will not demonstrate it here. If there is no special instructions, the operation will be performed on all three clusters.

Apt-get install docker-ce=18.06.3~ce~3-0~ubuntusystemctl enable docker2.2, install kubeadm, kubelet and kubectl

To install the source document, please refer to the official document https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm. I will omit the detailed steps here.

Sudo apt-get update & & sudo apt-get install-y apt-transport-https curlcurl-s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add-cat

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report