Upgrading method and device of Kubernetes cluster, electronic equipment and medium

A cluster and replica technology, applied in the upgrade field of Kubernetes clusters, can solve problems such as access exceptions and different additional attribute information, and achieve the effect of avoiding access exceptions

Active Publication Date: 2020-06-09
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF9 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the Pod itself has additional attribute information such as IP address, storage space, and device information, and the new Pod created by the existing upgrade mode has different additional attribute information from the old Pod, resulting in access exceptions

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Upgrading method and device of Kubernetes cluster, electronic equipment and medium
  • Upgrading method and device of Kubernetes cluster, electronic equipment and medium
  • Upgrading method and device of Kubernetes cluster, electronic equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] figure 1 It is a flowchart of a method for upgrading a Kubernetes cluster provided by Embodiment 1 of the present application. This embodiment is applicable to the case of upgrading a Deployment (deployment group) in a Kubernetes cluster. This method can be executed by an upgrade device of a Kubernetes cluster, which can be implemented in software and / or hardware, and integrated on any electronic device with a network communication function.

[0053] Such as figure 1 As shown, the Kubernetes cluster upgrade method provided in the embodiment of the present application includes the following steps:

[0054] S110. Obtain the deletion request of the old application instance and the new replica set information from the control manager through the interface server; wherein the deletion request and the new replica set information are determined when it is detected that the container image field of any deployment group is updated.

[0055] In this embodiment, figure 2 It is a schemat...

Embodiment 2

[0090] Figure 4 It is a structural block diagram of a Kubernetes cluster upgrade device used to implement the Kubernetes cluster upgrade method of the embodiment of the present application. This embodiment is applicable to the case of upgrading the Deployment (deployment group) in the Kubernetes cluster. The device can be implemented in software and / or hardware and integrated on any electronic device with network communication function.

[0091] Such as Figure 4 As shown, the Kubernetes cluster upgrade apparatus 400 provided in the embodiment of the present application specifically includes: a deletion information acquisition module 410, an in-situ upgrade determination module 420, a target upgrade module 430, and a deletion request rejection module 440. among them:

[0092] The deletion information acquisition module 410 is configured to acquire the deletion request of the old application instance and the new replica set information from the control manager through the interface...

Embodiment 3

[0112] According to the embodiments of the present application, the present application also provides an electronic device and a readable storage medium. Figure 5 It is a structural block diagram of an electronic device used to implement the Kubernetes cluster upgrade method of the embodiment of the present application.

[0113] Such as Figure 5 Shown is a block diagram of an electronic device according to the method for upgrading a Kubernetes cluster according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connec...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an upgrading method and device of a Kubernetes cluster, electronic equipment and a medium and relates to the technical field of computers, in particular to the technical fieldof cloud computing. According to the specific implementation scheme, the method comprises the steps of obtaining a deletion request and new copy set information of an old application instance from acontrol manager through an interface server; wherein the deletion request and the new copy set information are determined when detecting that a container mirror image field of any deployment group isupdated, determining whether a target deployment group to which the old application instance belongs needs to be upgraded in situ; if in-situ upgrading is needed, upgrading the old application instance into a new application instance in a new replica set according to the new replica set information so as to upgrade the target deployment group; refusing the delete request. By the adoption of the scheme, in-situ upgrading of the old application instance Pod can be achieved, it is guaranteed that the additional attribute information of the new Pod and the old Pod is the same, and subsequent access abnormity is avoided.

Description

Technical field [0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, device, device, and medium for upgrading a Kubernetes cluster in the field of cloud computing technology. Background technique [0002] Kubernetes (K8S for short) cluster is an open source container orchestration management platform used to manage containerized applications on multiple hosts in the cloud platform, providing a mechanism for application deployment, planning, updating, and maintenance. [0003] The Deployment (deployment group) in the K8S cluster supports two upgrade modes of Pod (application instance): RollingUpdate (rolling upgrade mode) and RecreateUpdate (rebuild upgrade mode). Regardless of the upgrade mode, the deployment group will delete the old Pod and create a new Pod. [0004] However, the Pod itself has additional attribute information such as IP address, storage space, and device information. The new Pod created by th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/65G06F9/455
CPCG06F8/65G06F9/45558
Inventor 郭良帅
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products