Skip to content

Instantly share code, notes, and snippets.

@nguyentienlong
Forked from 0sc/ingress-tutorial.yaml
Created September 28, 2019 16:17
Show Gist options
  • Save nguyentienlong/4124bac46e5681abd6f0ede4e5fa9fd1 to your computer and use it in GitHub Desktop.
Save nguyentienlong/4124bac46e5681abd6f0ede4e5fa9fd1 to your computer and use it in GitHub Desktop.
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