The invention discloses a
system for implementing blue and green publishing in a Kubernetes
system, and belongs to the technical field of computers. The
system comprises a blue-green publishing user-defined resource; the
webhook module of the
workload is used for monitoring release of a new version and carrying out preprocessing on blue-green release of the
workload; the user-defined resource controller is used for issuing user-defined resources according to blue and green, and executing issuing
control logic on corresponding workloads so as to achieve expected blue and green issuing behaviors; wherein when the
webhook module monitors that the new version is released, the
webhook module checks whether the release is allowed or not, and if the release is allowed, the release of the new version is in a transient pause state, so that the user-defined resource controller can perform
release management later. According to the method, the target
workload is subjected to blue-green publishing in a bypass manner, and meta-information of the workload is not changed before and after publishing; extra workloads do not need to be created, management of the publishing process is simplified, and stock workloads are supported to be carried out.