Skip to content

Instantly share code, notes, and snippets.

@helloitsjoe
Created May 13, 2020 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helloitsjoe/13c419d2dbc2f6281043a539d485aeb9 to your computer and use it in GitHub Desktop.
Save helloitsjoe/13c419d2dbc2f6281043a539d485aeb9 to your computer and use it in GitHub Desktop.
Ingress for Sentiment Analysis tutorial: https://rinormaloku.com/introduction-application-architecture/
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: sa-ingress
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: 'false'
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- http:
paths:
- path: /
backend:
serviceName: sa-frontend-lb
servicePort: 80
- path: /sentiment
backend:
serviceName: sa-web-app-lb
servicePort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment