22sidebar_position : 15
33---
44
5- # 3. Claims
5+ # 3. Instances
66
7- Claims are a fundamental concept in ** KRO** that represent instances of
7+ Instances are a fundamental concept in ** KRO** that represent instances of
88ResourceGroups. They define the desired state of a set of resources, which KRO
99continuously works to maintain.
1010
11- ## What is a Claim ?
11+ ## What is an Instance ?
1212
13- A Claim is a Kubernetes custom resource that:
13+ An Instance is a Kubernetes custom resource that:
1414
1515- References a specific ResourceGroup
1616- Provides values for the parameters defined in the ResourceGroup
1717- Represents the desired state of a set of Kubernetes resources
1818
19- ## Anatomy of a Claim
19+ ## Anatomy of an Instance
2020
21- Here's an example of a Claim for a ` WebApplication ` ResourceGroup:
21+ Here's an example of an Instance for a ` WebApplication ` ResourceGroup:
2222
2323``` yaml
2424apiVersion : kro.run/v1alpha1
@@ -37,65 +37,65 @@ spec:
3737 LOG_LEVEL : debug
3838` ` `
3939
40- :::tip The spec fields of a Claim correspond to the parameters defined in the
40+ :::tip The spec fields of an Instance correspond to the parameters defined in the
4141ResourceGroup. :::
4242
4343## The reconciliation loop
4444
45- KRO manages Claims through a continuous reconciliation process:
45+ KRO manages Instances through a continuous reconciliation process:
4646
47- - **Desired state detection**: KRO observes the Claim , which represents the
47+ - **Desired state detection**: KRO observes the Instance , which represents the
4848 desired state of resources.
4949- **Current state assessment**: KRO talks to the api-server and checks the
50- current state of resources in the cluster related to the Claim .
50+ current state of resources in the cluster related to the Instance .
5151- **Difference identification**: Any differences between the desired state
52- (Claim ) and the current state are identified.
52+ (Instance ) and the current state are identified.
5353- **State Reconciliation**: KRO takes necessary actions to align the current
5454 state with the desired state. This may involve creating, updating, or deleting
5555 resources as needed.
56- - **Status Updates**: The Claim 's status is updated to reflect the current state
56+ - **Status Updates**: The Instance 's status is updated to reflect the current state
5757 of reconciliation and any issues encountered.
5858- **Continuous Loop**: This process repeats regularly, ensuring the cluster
59- state always converges towards the desired state defined in the Claim .
59+ state always converges towards the desired state defined in the Instance .
6060
6161## Advantages of declarative management [need better title]
6262
6363- **Declarative Management**: Users define what they want, not how to get there.
6464- **Self-healing**: The system continuously works to maintain the desired state.
65- - **Idempotency**: The same Claim always results in the same end state,
65+ - **Idempotency**: The same Instance always results in the same end state,
6666 regardless of the current state.
6767- **Abstraction**: Complex resource relationships are managed behind the scenes.
6868- **Consistency**: All resources for an application are managed as a unit.
69- - **Auditability**: The Claim serves as a single source of truth for the
69+ - **Auditability**: The Instance serves as a single source of truth for the
7070 application's desired state.
7171
7272:::tip Best Practices
7373
74- - Treat claims as declarative definitions of your application's desired state.
75- Use version control for your Claims to track changes over time.
76- - Leverage labels and annotations in Claims for organization and filtering.
77- - Regularly review Claims to ensure they reflect current requirements.
74+ - Treat instances as declarative definitions of your application's desired state.
75+ Use version control for your Instances to track changes over time.
76+ - Leverage labels and annotations in Instances for organization and filtering.
77+ - Regularly review Instances to ensure they reflect current requirements.
7878- Use KRO's dry-run feature to preview reconciliation actions before applying
79- changes to Claims .
80- - Monitor Claim statuses to understand the current state of your applications.
79+ changes to Instances .
80+ - Monitor Instance statuses to understand the current state of your applications.
8181 :::
8282
8383## Common Status Fields
8484
85- KRO automatically injects two common fields into the status of all claims :
85+ KRO automatically injects two common fields into the status of all instances :
8686**Conditions** and **State**. These fields provide crucial information about the
87- current status of the claim and its associated resources.
87+ current status of the instance and its associated resources.
8888
8989### 1. Conditions
9090
9191Conditions are a standard Kubernetes concept that KRO leverages to provide
9292detailed status information. Each condition represents a specific aspect of the
93- claim 's state. Common conditions include:
93+ instance 's state. Common conditions include:
9494
95- - **Ready**: Indicates whether the claim is fully reconciled and operational.
96- - **Progressing**: Shows if the claim is in the process of reaching the desired
95+ - **Ready**: Indicates whether the instance is fully reconciled and operational.
96+ - **Progressing**: Shows if the instance is in the process of reaching the desired
9797 state.
98- - **Degraded**: Signals that the claim is operational but not functioning
98+ - **Degraded**: Signals that the instance is operational but not functioning
9999 optimally.
100100- **Error**: Indicates that an error has occurred during reconciliation.
101101
@@ -121,16 +121,16 @@ status:
121121
122122### 2. State
123123
124- The State field provides a high-level summary of the claim 's current status. It
124+ The State field provides a high-level summary of the instance 's current status. It
125125is typically one of the following values:
126126
127- - **Pending**: The claim is being processed, but resources are not yet fully
127+ - **Pending**: The instance is being processed, but resources are not yet fully
128128 created or configured.
129- - **Running**: All resources are created and the claim is operational.
130- - **Failed**: An error occurred and the claim could not be fully reconciled.
131- - **Terminating**: The claim is in the process of being deleted.
132- - **Degraded**: The claim is operational but not functioning optimally.
133- - **Unknown**: The claim 's status cannot be determined.
129+ - **Running**: All resources are created and the instance is operational.
130+ - **Failed**: An error occurred and the instance could not be fully reconciled.
131+ - **Terminating**: The instance is in the process of being deleted.
132+ - **Degraded**: The instance is operational but not functioning optimally.
133+ - **Unknown**: The instance 's status cannot be determined.
134134
135135Example:
136136
@@ -140,6 +140,6 @@ status:
140140` ` `
141141
142142These common status fields provide users with a consistent and informative way
143- to check the health and state of their claims across different ResourceGroups.
143+ to check the health and state of their instances across different ResourceGroups.
144144They are essential for monitoring, troubleshooting, and automating operations
145145based on the status of KRO-managed resources.
0 commit comments