forked from apk8s/book-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
50-ingress.yml
37 lines (37 loc) · 816 Bytes
/
50-ingress.yml
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
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gitlab
namespace: gitlab
labels:
app: gitlab
annotations:
#traefik.ingress.kubernetes.io/redirect-entry-point: https
cert-manager.io/cluster-issuer: "letsencrypt-production"
spec:
tls:
- hosts:
- reg.gitlab.platform.glslinc.com
- gitlab.platform.glslinc.com
secretName: gitlab-platform-tls
rules:
- host: gitlab.platform.glslinc.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gitlab
port:
number: 80
- host: reg.gitlab.platform.glslinc.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gitlab
port:
number: 5050