Skip to content

Commit 8f7d61b

Browse files
authored
Update troubleshooting doc for policy restriction (#2420) (#2422)
Policy: As a user, I want to know how to remedy a policy restriction issue. Solution: Add some workarounds to the troubleshooting doc.
1 parent 06b6d8c commit 8f7d61b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

site/content/how-to/monitoring/troubleshooting.md

+19
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,25 @@ To **resolve** this, you can do one of the following:
436436
437437
- Adjust the IPFamily of your Service to match that of the NginxProxy configuration.
438438
439+
##### Policy cannot be applied to target
440+
441+
If you `describe` your Policy and see the following error:
442+
443+
```text
444+
Conditions:
445+
Last Transition Time: 2024-08-20T14:48:53Z
446+
Message: Policy cannot be applied to target "default/route1" since another Route "default/route2" shares a hostname:port/path combination with this target
447+
Observed Generation: 3
448+
Reason: TargetConflict
449+
Status: False
450+
Type: Accepted
451+
```
452+
453+
This means you are attempting to attach a Policy to a Route that has an overlapping hostname:port/path combination with another Route. To work around this, you can do one of the following:
454+
455+
- Combine the Route rules for the overlapping path into a single Route.
456+
- If the Policy allows it, specify both Routes in the `targetRefs` list.
457+
439458
### Further reading
440459
441460
You can view the [Kubernetes Troubleshooting Guide](https://kubernetes.io/docs/tasks/debug/debug-application/) for more debugging guidance.

0 commit comments

Comments
 (0)