Skip to content

Instantly share code, notes, and snippets.

@Neutrollized
Last active June 3, 2022 15:36
Show Gist options
  • Select an option

  • Save Neutrollized/c76c8238e0aca75d35981797da793df2 to your computer and use it in GitHub Desktop.

Select an option

Save Neutrollized/c76c8238e0aca75d35981797da793df2 to your computer and use it in GitHub Desktop.
Medium: NGINX Ingress or GKE Ingress
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nginx-ingress-no-rewrite
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
defaultBackend:
service:
name: web
port:
number: 80
rules:
- host: "mysite.example.com"
http:
paths:
- pathType: Prefix
path: "/ui"
backend:
service:
name: web
port:
number: 80
- pathType: Prefix
path: "/payments"
backend:
service:
name: payments
port:
number: 80
- pathType: Prefix
path: "/currency"
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