Created
December 20, 2018 06:50
-
-
Save torosent/ed3a59b6573bf021f950d778550489d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: demo-api | |
namespace: default | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
certmanager.k8s.io/cluster-issuer: letsencrypt-prod | |
nginx.ingress.kubernetes.io/rewrite-target: / | |
nginx.ingress.kubernetes.io/limit-connections: "2" | |
nginx.ingress.kubernetes.io/limit-rps: "10" | |
nginx.ingress.kubernetes.io/configuration-snippet: | | |
server_tokens off; | |
location /api/v1/templates { | |
deny all; | |
return 403; | |
} | |
spec: | |
tls: | |
- hosts: | |
- demo-api.westeurope.cloudapp.azure.com | |
secretName: tls-secret | |
rules: | |
- host: demo-api.cloudapp.azure.com | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: demo-api | |
servicePort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment