Fast upgrade and capacity expansion of Kubernetes 1.21.0 high availability cluster

Kubernetes 1.21.0 has been officially released, and highly available clusters can also be upgraded directly (hub.docker.com has been stopped, and registry.cn-hangzhou.aliyuncs.com/google_containers is used). Fast upgrade (including domestic image quick download link) includes three main steps: upgrading kubedm / kubectl / kubelet version ...

Posted by TenFold on Fri, 04 Mar 2022 05:54:52 +0100

etcd cluster construction of microservice automation

1, Set up etcd cluster There are three main types of self building clusters: Static discovery: the nodes in the etcd cluster are known in advance. When starting, directly specify the addresses of each node of the etcd through the -- initial cluster parameter.Etcd dynamic discovery: the premise of static configuration is that the informati ...

Posted by Andy82 on Tue, 01 Mar 2022 13:53:39 +0100

Reflector analysis in k8s source code client go

Abstract: through this article, you can understand the process of Reflector obtaining objects from Kubernetes API through ListWatcher and storing them in the store. Later, you will study the source code of DeltaFIFO and deepen your understanding of the whole informer by combining with informer. This article is shared from Huawei cloud commun ...

Posted by Cantaloupe on Tue, 22 Feb 2022 11:07:13 +0100

Implementation of etcd distributed lock

Etcd distributed lock is not a function api provided by etcd server, but a tool for integrating various features (lease, watch, mvcc, etc.) based on etcd.In the same process, in order to avoid data competition for shared variables, it can usually be avoided by locking and unlocking. However, if multiple processes operate on the same resource, o ...

Posted by iovidiu on Thu, 10 Feb 2022 11:17:10 +0100

How is the lease of etcd realized

What is the leaseWe all know that redis can set the expiration time of the key through the expire command to realize the ttl of the cache. Etcd also has a feature that can set the expiration time of the key, that is, Lease. However, in comparison, the applicable scenarios of the two are different. Etcd Lease is widely used in service registrati ...

Posted by php4geek on Wed, 09 Feb 2022 04:42:00 +0100

Take you ten days to easily finish the finale of Go micro service (Distributed Transaction)

preface We will show you a go zero micro service example in detail through a series of articles. The whole series is divided into ten articles, and the directory structure is as follows: Environment construction Service splitting User services Product service Order service Payment services RPC service Auth authentication Serv ...

Posted by trellie on Mon, 31 Jan 2022 01:33:24 +0100

Go zero uses Etcd for service registration code analysis

code analysis github.com/tal-tech/go-zero@v1.2.3/core/discov/publisher.go package discov import ( "github.com/tal-tech/go-zero/core/discov/internal" "github.com/tal-tech/go-zero/core/lang" "github.com/tal-tech/go-zero/core/logx" "github.com/tal-tech/go-zero/core/proc" "github.com/tal-tech/go-zero/core/syncx" "github.c ...

Posted by super_man on Sun, 19 Dec 2021 04:23:36 +0100

Kubernetes uses kubedm to create clusters

For image download, domain name resolution and time synchronization, please click Alibaba open source mirror station Practice environment CentOS-7-x86_64-DVD-1810 Docker 19.03.9 Kubernetes version: v1.20.5 Before starting One Linux operating system or more, compatible with deb,rpm Ensure that each machine has 2G memory or more Ensure th ...

Posted by rtsanderson on Mon, 06 Dec 2021 06:28:40 +0100