-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx-ingress.yaml
40 lines (40 loc) · 992 Bytes
/
nginx-ingress.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: kong
configuration.konghq.com: https-only
cert-manager.io/cluster-issuer: nginx-prod
kong.ingress.kubernetes.io/proxy-read-timeout: "1800"
kong.ingress.kubernetes.io/proxy-send-timeout: "1800"
kong.ingress.kubernetes.io/rewrite-target: /
kong.ingress.kubernetes.io/proxy-body-size: "50m"
name: nginx-basic-ingress
spec:
rules:
- host: nginx.mockharsh.tk
http:
paths:
- backend:
serviceName: nginx-service
servicePort: 8080
tls:
- hosts:
- nginx.mockharsh.tk
secretName: nginx-prod
---
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: nginx-prod
spec:
acme:
email: [email protected]
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: nginx-prod
solvers:
- http01:
ingress:
class: kong
selector: {}