Skip to content

Instantly share code, notes, and snippets.

@hackintoshrao
Created July 24, 2018 13:23
Show Gist options
  • Select an option

  • Save hackintoshrao/71706dcf1510ba9c98881885d09730a9 to your computer and use it in GitHub Desktop.

Select an option

Save hackintoshrao/71706dcf1510ba9c98881885d09730a9 to your computer and use it in GitHub Desktop.
Yaml config fpr gateway and service entry for new istio config
piVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: up-gateway
namespace: istio-system
spec:
selector:
istio: ingressgateway # use Istio default gateway implementation
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: frontend
namespace: istio-system
spec:
hosts:
- "*"
gateways:
- up-gateway
http:
- match:
- uri:
prefix: /
route:
- destination:
port:
number: 80
host: frontend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment