Skip to content

Instantly share code, notes, and snippets.

@SpicySyntax
Created July 8, 2019 15:56
Show Gist options
  • Save SpicySyntax/66c23e6c622cf9a3944ce16376fda77d to your computer and use it in GitHub Desktop.
Save SpicySyntax/66c23e6c622cf9a3944ce16376fda77d to your computer and use it in GitHub Desktop.
Nginx Ingress Self-Signed
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: obj-det-ingress
namespace: default
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, DELETE, GET, POST, OPTIONS"
nginx.ingress.kubernetes.io/cors-allow-origin: "https://objectdetectionstorageqa.z19.web.core.windows.net/"
nginx.ingress.kubernetes.io/cors-allow-credentials: "true"
nginx.ingress.kubernetes.io/proxy-body-size: 50m
spec:
tls:
- hosts:
- od-aks-ingress.eastus.cloudapp.azure.com
- objectdetectionstorageqa.z19.web.core.windows.net
secretName: aks-ingress-tls
rules:
- host: od-aks-ingress.eastus.cloudapp.azure.com
http:
paths:
- backend:
serviceName: wishing-clownfish-crack-detection
servicePort: 80
path: /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment