This one is strange. I’ve just migrated my AWX instance from an on-prem k8s cluster to a GKE cluster in GCP. Everything is working as expected with some minor changes such as the source IP needed to be from the pod subnet instead of the node IP’s. While testing and setting up connectivity it was discovered that certain destination IP subnets are causing the source IP to be one of the Node IP’s (same as before when we were on-prem).
Any insight as to why this is happening?
Is there a way to change this behavior?
Is this something with awx or is this a kuberntes GKE thing?
Hi, I don’t know much about your actual situation, but the AWX does nothing over the source IP addresses of the traffics AWX makes.
Therefore, I believe your issue is due to the GKE-thing instead of something with AWX.
I have not configured this myself, so I cannot give specific advice, but if you want to control source IP address, perhaps there is a clue around Cloud NAT or Egress NAT Policy on GKE.
Update on this in case anyone else has this issue.
GKE/GCP treated the addresses in question as public addresses and therefore tried to route them accordingly. We decied to address the issue by re-IPing the devices because they shouldn’t have been on public addresses to begin with.