|
|
@@ -1,25 +1,25 @@
|
|
1
|
|
-# tls-ingress.yaml
|
|
2
|
1
|
apiVersion: networking.k8s.io/v1
|
|
3
|
2
|
kind: Ingress
|
|
4
|
3
|
metadata:
|
|
5
|
|
- name: factorytrace-ingress
|
|
|
4
|
+ labels:
|
|
|
5
|
+ app: factorytrace
|
|
|
6
|
+ name:
|
|
|
7
|
+ namespace: factorytrace # if non-default namespace
|
|
6
|
8
|
annotations:
|
|
7
|
|
- cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
8
|
|
- nginx.ingress.kubernetes.io/rewrite-target: /
|
|
|
9
|
+ cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
9
|
10
|
spec:
|
|
10
|
|
- ingressClassName: nginx
|
|
11
|
|
- tls:
|
|
12
|
|
- - hosts:
|
|
13
|
|
- - lahelice.vespot.co
|
|
14
|
|
- secretName: lahelice-tls
|
|
15
|
11
|
rules:
|
|
16
|
|
- - host: lahelice.vespot.co
|
|
|
12
|
+ - host: lahelice.vespot.co # your domain
|
|
17
|
13
|
http:
|
|
18
|
14
|
paths:
|
|
19
|
|
- - path: /
|
|
20
|
|
- pathType: Prefix
|
|
21
|
|
- backend:
|
|
|
15
|
+ - backend:
|
|
22
|
16
|
service:
|
|
23
|
17
|
name: frontpod-service
|
|
24
|
18
|
port:
|
|
25
|
|
- number: 80
|
|
|
19
|
+ number: 80 # use appropriate port
|
|
|
20
|
+ path: /
|
|
|
21
|
+ pathType: Prefix
|
|
|
22
|
+ tls:
|
|
|
23
|
+ - hosts:
|
|
|
24
|
+ - lahelice.vespot.co # your domain
|
|
|
25
|
+ secretName: letsencrypt-prod
|