Skip to content

Instantly share code, notes, and snippets.

@identor
Last active February 10, 2019 08:28
Show Gist options
  • Save identor/7cb56b947de525a65f2bbd1b6cb3719a to your computer and use it in GitHub Desktop.
Save identor/7cb56b947de525a65f2bbd1b6cb3719a to your computer and use it in GitHub Desktop.
Kubernetes: Setting up fanout ingress GCP
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: fanout-ingress
annotations:
kubernetes.io/ingress.global-static-ip-name: "web-static-ip"
spec:
rules:
- http:
paths:
- path: /*
backend:
serviceName: web
servicePort: 8080
- path: /v2/*
backend:
serviceName: web2
servicePort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment