Skip to content

Instantly share code, notes, and snippets.

@Neutrollized
Created June 3, 2022 15:40
Show Gist options
  • Save Neutrollized/9f3b622d3dae6e4b2931faae97bc59ae to your computer and use it in GitHub Desktop.
Save Neutrollized/9f3b622d3dae6e4b2931faae97bc59ae to your computer and use it in GitHub Desktop.
Medium: NGINX Ingress or GKE Ingress
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gxlb-ingress
namespace: default
annotations:
kubernetes.io/ingress.class: "gce"
kubernetes.io/ingress.allow-http: "true"
spec:
defaultBackend:
service:
name: web
port:
number: 80
rules:
- host: "mysite.example.com"
http:
paths:
- path: /ui
pathType: ImplementationSpecific
backend:
service:
name: web
port:
number: 80
- path: /payments
pathType: ImplementationSpecific
backend:
service:
name: payments
port:
number: 80
- path: /currency
pathType: ImplementationSpecific
backend:
service:
name: currency
port:
number: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment