You can create a component template using the uploaded container images.
A single containerized application consists of one or more components. Each component has one or more containers.
When creating a component template from container images, specify:
For the Guestbook application, three component templates must be created:
A component template name must:
Name and version number of the container image that will be used to create the component template.
Container images are classified into two types:
Network protocol and listening port used by the component.
In the gbkfrontend example, Network is TCP and Port is 80.
Memory capacity and CPU capacity of the component.
In the gbkfrontend example, Memory is 64 MB and CPU is 100 mcores.
If only one container supports uncapped CPU, the container can use available resources on the node, in addition to the CPU capacity of the container.
If multiple containers support uncapped CPU, they can additionally share available resources on the node on a percentage basis. For example, if the CPU capacity of container A is 100 mcores and the CPU capacity of container B is 300 mcores, then they share available resources on the node at a ratio of 1:3.
Usually, the default value of Support uncapped resource is retained.
You can leave these fields unspecified.
The default port number of the Redis components is 6379. The port number must be the same as that defined in section Building Container Images.
The created component templates are listed on the Component Template page.