Research Article

An Approach for Reconstructing Applications to Develop Container-Based Microservices

Table 4

Description of Kubernetes main template script model.

ElementDescription

Common infoCommon info is an element that describes all types of template scripts, and it specifies the script version (apiVersion), the type of template script, the name, and the tag information (label).

PodIt is a container unit defined by Kubernetes. It should specify at least one container name, container image, container command, and container resources.

ReplicaSetIn Kubernetes, it can control and manage multiple Pods; an administrator can replicate a desired number of Pods, and it can control specific Pods with a label selector.
It is possible to create a template script by specifying the template of the Pod container in advance and creating a template script for the same type of Pod through ReplicaSet.

ServiceThe created Pod service is responsible for network-related services to communicate with external clients. Like ReplicaSet, it can control external communication with a specific Pod through a label selector and specify the source port, target port, protocol information, and external IP.