Skip to content

Instantly share code, notes, and snippets.

@suprith-s-reddy
Created April 28, 2020 18:31
Show Gist options
  • Save suprith-s-reddy/8335104439cea9f88f9687ce8b60204c to your computer and use it in GitHub Desktop.
Save suprith-s-reddy/8335104439cea9f88f9687ce8b60204c to your computer and use it in GitHub Desktop.
Kubernetes ingress service for vue application
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress-service
namespace: default
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
rules:
- http:
paths:
- path: /
backend:
serviceName: web
servicePort: 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment