The KubeDirector Roles Screen
Clicking the Next button in the KubeDirector Services screen (see The KubeDirector Services Screen) opens the KubeDirector Roles screen, which is where you describe the pod roles that will be included in this application and assign services to those roles.
The What roles does your app contain? section of the screen allows you to:
- Add a new role: See Adding a New Role.
- View roles: See Viewing Roles.
- Edit an existing role: See Editing an Existing Role.
- Remove a role: See Removing a Role.
When you have finished defining the services for your application, click Next to proceed to the KubeDIrector Configuration screen. See The KubeDIrector Configuration Screen.
Adding a New Role
To add a new role:
- Enter the name of the role in the Role Name field. This will specify the name of the virtual node/container/pod.
- If desired, enter the minimum number of virtual CPU cores to use for this role in the CPU Size (Cores) field.
- If desired, enter the minimum amount of RAM in MB to use for this role in the RAM Size (MB) field.
- Enter the number of virtual nodes to be deployed for this role in the
Cardinality field.
- If you enter an integer, then a fixed
number of virtual nodes. For example, entering
2
means that two virtual nodes of this role will be deployed. - If you enter an integer followed by a plus sign (+),
then the integer specifies the minimum number of virtual nodes that will
be deployed with this role. You may scale this out when deploying
clusters/pods. For example, entering
2+
means that at least two virtual nodes of this role will be deployed; you may deploy a larger number if you choose.
- If you enter an integer, then a fixed
number of virtual nodes. For example, entering
- Expand the Services menu to display all of the services that you
configured in the KubeDirector Roles screen. You may
now:
- Check a checkbox for a service to assign that service to this role.
- Clear a checkbox for a service to unassign that service from this role.
- Click the Add button to add the new role.
You may now:
- View the role, as described in Viewing Roles.
- Edit the role, as described in Editing an Existing Role.
- Remove the role, as described in Removing a Role.
Viewing Roles
The table at the bottom of the KubeDirector Roles screen appears when you have defined at least one role for this application. This table displays the following information for each role:
- Role Name: Name of the role, which specifies the name of the virtual node/container/pod.
- CPU Size (Cores): If specified, the minimum number of virtual CPU cores to use for this role.
- Ram Size (MB): If specified, the minimum amount of RAM in MB to use for this role.
- Cardinality: Number of virtual nodes to deploy for this role. This can be either an absolute number (if the cardinality is an integer) or a minimum (if the cardinality is an integer followed by a plus sign (+)).
- Services: Any service(s) assigned to that role.
- Edit: Clicking the Edit icon (pencil) for a service allows you to edit that role. See Editing an Existing Role.
- Delete: Clicking the Delete icon (X) for a service removes that role. See Removing a Role.
Editing an Existing Role
To edit an existing role:
-
In the table at the bottom of the KubeDirector Roles screen, click the Edit icon (pencil) for the role you want to edit.
The top of this section populates with the current information for the selected role.
- Make your desired changes. See Adding a New Role for information on what to place in the fields.
- Either:
- Click Add to save your changes as a new role.
- Click Update to save your changes to the existing role.
- Click Reset to cancel your changes without modifying the role.
Removing a Role
To remove a role, click the Delete icon (X) for the role you want to remove in the table at the bottom of the KubeDirector Roles screen.