KOP EKS Clusters - Fleet Plan - Rafay Product Documentation

Create Plan

The cluster fleet plan is designed to benefit users involved in cluster management, deployment, and operations, enabling them to efficiently manage resources, implement custom operations, and track fleet execution across projects and clusters.

Users have the flexibility to create or edit a fleet plan using two different options: the Form and YAML Editor. Each option offers distinct advantages and allows users to tailor the configuration specifications according to their requirements.

While the Form option offers a straightforward and guided approach, the YAML Editor option empowers users with greater flexibility and control over their fleet plan configuration. Users can choose the option that best suits their expertise and requirements.

Form

The Form option provides a user-friendly interface where users can conveniently input information for each field in the fleet plan configuration. The Form option ensures that users don't miss any essential information and simplifies the fleet plan creation process.

YAML Editor

The YAML Editor option empowers users to create or edit a config spec for a fleet plan using YAML syntax. This method is ideal for users who are comfortable working directly with code and prefer a more granular level of control over their configurations.

Both the Form and YAML Editor options cater to users with different preferences and skill levels, ensuring a seamless and efficient fleet plan creation or editing experience.


New Fleet Plan

Perform the below steps to create a New Fleet Plan:

Fleet Plan Configuration page appears.

Optionally, you can provide the configuration details for Operation Workflow, Fleet, and Agents.

Operation Workflow

Users often require custom operations in cases where they want to send commands and receive responses from resources. For example, upgrading a bunch of clusters at once or applying certain security policies to a group of clusters, users can create a single operation to apply on all clusters in a fleet.

Action Configuration appears:

Note: The types Control Plane Upgrade, Node Group And Control Plane Upgrade, Node Groups Upgrade, and Patch are applicable for all types of clusters except Imported Clusters. However, the type Blueprint is applicable for all clusters, including Imported Clusters.

If this option is enabled:

Clicking Save allows users to add hooks if necessary. If not needed, select No, Exit.

Hook Configuration (Optional)

Hooks offer users the capability to perform actions either before or after the execution of an operation. While it is possible to achieve this by writing a custom operation, utilizing hooks provides a more intuitive approach for implementing pre- or post-operation tasks.

Users can either Save and Add Hook from the Action Configuration page or use New Hook button available in the Operations section.

Pre-hook and Post-hook

The inclusion of pre-hooks and post-hooks provides users with the flexibility to incorporate custom functionality before and after various fleet operations.

Fleet Tolerations

Note: Node Selectors and Tolerations are applicable only when the Runner type is set to Cluster.

Success Condition for Container based Hooks

Success Condition for HTTP based Hooks

Important:

To utilize the fleet prehooks feature with runner type Agent, it is necessary to upgrade GitOps to the latest version.

Important: If no hooks are added, the actions are applied to the fleet of clusters without any checks.


Fleet

Selection of multiple clusters from multiple projects is possible via the mapped labels and projects.


Agents

Add Agent is mandatory when a user adds an agent to configure Runner type Agent in hook configuration. Multiple agents are supported.

Click Save.

Once the Fleet Plan is saved, execute the operations job using the Run button.


Edit Fleet Plan

Authorized users can edit and update existing fleet jobs anytime.


Run Fleet Jobs

Here is an illustration featuring a fleet containing a single target, marked with a successful status. A visual depiction presents both the total resource count and its corresponding status.

Use the View Config eye icon to get the detailed config spec of this specific fleet plan.

Important: View the Fleet operations logs in the Audit Logs page.