Service¶
A service can be defined as an abstraction on top of pods that provides a single IP address and DNS name by which pods can be accessed.
Accessing Service Configuration¶
-
Open the project added earlier and click Cruize.

-
Click on the blueprint version count on the blueprint card. After clicking the count, the blueprint versions page will be displayed, which contains a list of blueprint versions.

-
Click on the View configurations kebab menu option or click on the blueprint version name to view blueprint configurations.
-
Go to the Deployments tab and click Edit deployment definition from the Action column of any deployment.
-
The deployment definition page will open. Now go to the Service tab as shown in the image below.

Adding a New Service¶
-
Click the Add New Service button. After clicking, the following form will be displayed as shown in the image below.

-
Add a service by entering the following details:
Field Description Service name Enter the service name Service type Default type is 'ClusterIP', change as applicable Port Mapping Add container port(s) here. At least one container port is required. Labels & Annotations Optional - Add labels and annotations here
Field Requirements¶
1. Service Name¶
Naming requirements: - Only lowercase alphanumeric characters, hyphens (-), or periods (.) are allowed - Must start and end with an alphanumeric character - Name must be unique - Maximum 63 characters allowed

2. Service Type¶
Select the service type: 1. ClusterIP 2. NodePort 3. LoadBalancer

3. Port Mapping¶
- Click the Add Container Port(s) button. You will see the container port list as shown in the image below. Select the required container port(s) and click the Add ports button.
- While adding a container port, you will see only the ports that are not used by any other service in that deployment.

- Only the service port/port is editable from the added container port(s) list as shown in the image below.

4. Labels & Annotations¶
Click here to learn more about labels and annotations.
-
Provide all details and click the Save button.

View Service Labels and Annotations¶
To view service labels & annotations:
-
Click the View icon as shown in the image below.

Edit Service¶
To edit service data:
-
Click the Edit icon as shown in the image below.

Delete Service¶
To delete a service:
-
Click the Delete icon as shown in the image below.
