Skip to content

Instantly share code, notes, and snippets.

@iolalla
Created January 17, 2019 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iolalla/44f23027dabf02a6b8889ea983e8be3c to your computer and use it in GitHub Desktop.
Save iolalla/44f23027dabf02a6b8889ea983e8be3c to your computer and use it in GitHub Desktop.
If you have a GKE cluster on GCP and want to access the google APIs or any resource outside the cluster you need to have a service entry in the egress proxy
##########################################################################################################################
# External Services Istio
#########################################################################################################################
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: external-svc-https
spec:
hosts:
- www.googleapis.com #bigquery
- pubsub.googleapis.com #pubsub
- 136.237.338.439 #postgresql Obviously use yours
- 10.10.10.10 #Internal Postgresql
location: MESH_EXTERNAL
ports:
- number: 443
name: https
protocol: HTTPS
- number: 80
name: http
protocol: HTTP
resolution: DNS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment