Skip to content

Instantly share code, notes, and snippets.

@ajazfarhad
Created June 27, 2022 11:36
Show Gist options
  • Save ajazfarhad/b4e6b7f6072616c755082659cffae5f3 to your computer and use it in GitHub Desktop.
Save ajazfarhad/b4e6b7f6072616c755082659cffae5f3 to your computer and use it in GitHub Desktop.
GKE Internal load balancer service
apiVersion: v1
kind: Service
metadata:
name: shop-api-internal-load-balancer
namespace: staging
annotations:
networking.gke.io/load-balancer-type: "Internal"
spec:
ports:
- port: 80
protocol: TCP
targetPort: 3000
selector:
app: shop-api
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment