NCS is a service that provides environments for running containers. You can use this service to run containers without configuring container execution environments, such as a VM Instance and Kubernetes.
The following image shows an example of NCS service configuration.
Define which specification of the container to configure in Template
.
Template
describes the template name, description, VPC to connect to, and one or more container specifications.
Container specifications include a registry URL containing the Container image to run, resource specifications such as CPU, GPU, and Memory to be used, the port used by the container, and NAS storage to be connected.
Creating Template does not create a container. Template is a framework for creating workloads, and a container is created when creating the workload by using the Template.
With templates maintained, it is possible to create workloads and run containers only when necessary.
Define workload
with reference to Template
that describes container specifications.
Workload
describes the referenced Template
, the number of running workloads, whether the Load Balancer is enabled, and whether floating IP is enabled.
Image above shows the configuration result when you create an workload by setting the number of running workloads to 2 and defining the 2 container specifications in Template.
When creating a workload, the container defined in the Template is created under Task
.
Task
specifies the IP assigned from VPC subnet.
If you want to access the container port created in a place accessible to the VPC, you can access it with Task
IP: container port.
The number of Tasks
specified in the workload execution count will be executed. In the above example, two Tasks are created because 2 is specified in the example.
When you set multiple containers to run in the workload and connect them to the load balancer, traffic load can be distributed to each container. If it is configured to use the floating IP, FIP is assigned to the load balancer and the domain is created.
Floating IP and Domain are not available if Internet Gateway is not connected to the specified VPC Subnet.