I Have a pod that needs to connect to a Database located on GCE Vm's with the same subnet as the GKE nodes. I currently have a k8 Service and k8 Endpoint that the pod successfully connects to but the 10.128.0.2 cannot be routed. Im sure this pertains to a GCP firewall rule/route but I havn't had much luck.
subnet -> 10.128.0.0/9
cbr0 -> 10.8.15.0/20
eth0 -> 10.128.0.1
k8 services -> 10.11.224/14
Master Version: 1.9.7-gke.3
kind: Endpoints
apiVersion: v1
metadata:
name: externalDB
namespace: default
subsets:
- addresses:
- ip: 10.128.0.2
ports:
- port: 7199
name: interface
"