Skip to content

Instantly share code, notes, and snippets.

@Damianofds
Last active March 9, 2018 10:11
Show Gist options
  • Save Damianofds/044b61e344cdb8d4723ed0919e37b9da to your computer and use it in GitHub Desktop.
Save Damianofds/044b61e344cdb8d4723ed0919e37b9da to your computer and use it in GitHub Desktop.
Ingress example for the blogpost
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nginx-ingress
annotations:
ingress.kubernetes.io/proxy-body-size: 100M
ingress.kubernetes.io/whitelist-source-range: "76.190.128.220/24,98.202.168.120/32,76.34.172.28/32"
kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/app-root: "/"
spec:
tls:
- hosts:
- staging.omnius.com
secretName: thecert
rules:
- host: staging.omnius.com
http:
paths:
- path: /app
backend:
serviceName: frontend
servicePort: 80
- path: /detect
backend:
serviceName: detector
servicePort: 80
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment