Skip to content

Instantly share code, notes, and snippets.

@justindavies
Created July 5, 2019 06:54
Show Gist options
  • Save justindavies/619048597122f74ab5a0b8d19dc1b58d to your computer and use it in GitHub Desktop.
Save justindavies/619048597122f74ab5a0b8d19dc1b58d to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: api-ingress
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
rules:
- host: inkl.in
http:
paths:
- path: /sitemaps/.*
backend:
serviceName: sitemaps
servicePort: 80
- path: /
backend:
serviceName: frontend
servicePort: 80
- host: api.inkl.in
http:
paths:
- path: /filing
backend:
serviceName: api-db
servicePort: 80
- path: /readability
backend:
serviceName: api-nlp
servicePort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment