As described in CR SidecarGateway, the podSelector
selects the Pods to which the CustomResource SidecarGateway
should be applied.
Two different SidecarGateway
CRs might point to the same Pod. That is an invalid configuration and could be detected as follows:
- List the
SidecarGateway
CustomResources - The status
Error
indicates that something is wrong. - Use
kubectl describe sidecargateways.microgateway.airlock.com
to inspect the status. - Adjust the existing
SidecarGateway
CustomResources which point to the same Pod. - The status of the
SidecarGateway
CRs has changed toActive
.
The Status.Conditions.Message
field contains the reason for the issue and says, that already another SidecarGateway is configuring the same Pod.