Skip to content

Commit 36782c5

Browse files
authored
Merge pull request #93606 from slovern/TELCODOCS-2329
TELCODOCS-2329 - ACM PolicyGenerator RAN limitations
2 parents 90230ce + 23998a3 commit 36782c5

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

modules/cnf-topology-aware-lifecycle-manager-troubleshooting.adoc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,3 +469,32 @@ $ oc describe pod -n openshift-talo-pre-cache <pod name>
469469
----
470470
$ oc describe job -n openshift-talo-pre-cache pre-cache
471471
----
472+
473+
[discrete]
474+
[id="talo-troubleshooting-pre-placement-tolerations_{context}"]
475+
=== Matching policies and `ManagedCluster` CRs before the managed cluster is available
476+
477+
Issue:: You want {rh-rhacm} to match policies and managed clusters before the managed clusters become available.
478+
+
479+
Resolution:: To ensure that {cgu-operator} correctly applies the {rh-rhacm} policies specified in the `spec.managedPolicies` field of the `ClusterGroupUpgrade` (CGU) CR, {cgu-operator} needs to match these policies to the managed cluster before the managed cluster is available.
480+
The {rh-rhacm} `PolicyGenerator` uses the generated `Placement` CR to do this automatically.
481+
By default, this `Placement` CR includes the necessary tolerations to ensure proper {cgu-operator} behavior.
482+
+
483+
The expected `spec.tolerations` settings in the `Placement` CR are as follows:
484+
+
485+
[source,yaml]
486+
----
487+
#…​
488+
tolerations:
489+
- key: cluster.open-cluster-management.io/unavailable
490+
operator: Exists
491+
- key: cluster.open-cluster-management.io/unreachable
492+
operator: Exists
493+
#…​
494+
----
495+
+
496+
If you use a custom `Placement` CR instead of the one generated by the {rh-rhacm} `PolicyGenerator`, include these tolerations in that `Placement` CR.
497+
+
498+
For more information on placements in {rh-rhacm}, see link:https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/2.13/html-single/clusters/index#placement-overview[Placement overview].
499+
+
500+
For more information on tolerations in {rh-rhacm}, see link:https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/latest/html-single/clusters/index#taints-tolerations-managed[Placing managed clusters by using taints and tolerations].

modules/ztp-pgt-config-best-practices.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ Consider the following best practices when customizing site configuration `{poli
1515
* `MachineConfig` CRs should be included as `extraManifests` in the `SiteConfig` CR so that they are applied during installation. This can reduce the overall time taken until the cluster is ready to deploy applications.
1616
1717
* `{policy-gen-cr}` CRs should override the channel field to explicitly identify the desired version. This ensures that changes in the source CR during upgrades does not update the generated subscription.
18+
19+
* The default setting for `policyDefaults.consolidateManifests` is `true`. This is the recommended setting for DU profile. Setting it to `false` might impact large scale deployments.
20+
21+
* The default setting for `policyDefaults.orderPolicies` is `false`. This is the recommended setting for DU profile.
22+
After the cluster installation is complete and a cluster becomes `Ready`, {cgu-operator} creates a `ClusterGroupUpgrade` CR corresponding to this cluster.
23+
The `ClusterGroupUpgrade` CR contains a list of ordered policies defined by the `ran.openshift.io/ztp-deploy-wave` annotation.
24+
If you use the `{policy-gen-cr}` CR to change the order of the policies, conflicts might occur and the configuration might not be applied.

0 commit comments

Comments
 (0)