Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress-tutorial
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
backend:
serviceName: default-http-backend
servicePort: 80
rules:
- host: myminikube.info
http:
paths:
- path: /
backend:
serviceName: echoserver
servicePort: 8080
- host: cheeses.all
http:
paths:
- path: /stilton
backend:
serviceName: stilton-cheese
servicePort: 80
- path: /cheddar
backend:
serviceName: cheddar-cheese
servicePort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment