You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/features/failure-handling.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,9 +58,9 @@ spec:
58
58
image: nginx:latest
59
59
```
60
60
61
-
## Excluding Components from Restart Policy Trigger (CustomComponentsPattern)
61
+
## Excluding Components from Restart Policy Trigger
62
62
63
-
When using `customComponentsPattern`, you can prevent specific components from triggering the role's restart policy by setting an annotation on the component's pod template. This is useful for auxiliary components (e.g., monitoring, logging sidecars) whose failures should not affect the main workload.
63
+
You can prevent specific pods from triggering the role's restart policy by setting an annotation on the pod template. This is useful for auxiliary components (e.g., monitoring, logging sidecars) whose failures should not affect the main workload. The annotation works with any deployment pattern (standalonePattern, leaderWorkerPattern, or customComponentsPattern).
64
64
65
65
Set the annotation `rbg.workloads.x-k8s.io/restart-trigger-policy: "Ignore"` in the component's `template.metadata.annotations`:
66
66
@@ -109,9 +109,9 @@ When this annotation is set to "Ignore" on a component's pod template:
109
109
- **RecreateRBGOnPodRestart**: Gateway/router roles that require all downstream services to be healthy.
110
110
- **RecreateRoleInstanceOnPodRestart**: Worker roles that can tolerate individual instance failures.
111
111
- **None**: Monitoring/logging sidecars that don't affect the main workload.
112
-
- **ignoreRestartPolicy**: Auxiliary components within customComponentsPattern that should be isolated from restart policy actions.
112
+
- **restart-trigger-policy: "Ignore"** (annotation): Auxiliary components whose pod failures should not trigger the role's restart policy actions.
0 commit comments