forked from taskcluster/taskcluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathingress.yaml
49 lines (49 loc) · 1.76 KB
/
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
41
42
43
44
45
46
47
48
49
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: taskcluster-ingress
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
tls:
- hosts: [{$eval: 'root_url[8:]'}]
secretName: {$eval: 'root_url_tls_secret'}
rules:
# slice the leading `https://` off the rootUrl to get the hostname
- host: {$eval: 'root_url[8:]'}
http:
paths:
$flatten:
- path: '/'
backend:
serviceName: taskcluster-ui
servicePort: 80
- path: '/references/'
backend:
serviceName: taskcluster-references
servicePort: 80
- path: '/schemas/'
backend:
serviceName: taskcluster-references
servicePort: 80
- path: '/graphql'
backend:
serviceName: taskcluster-web-server
servicePort: 80
- $map:
- {service_name: auth, project_name: taskcluster-auth}
- {service_name: secrets, project_name: taskcluster-secrets}
- {service_name: queue, project_name: taskcluster-queue}
- {service_name: hooks, project_name: taskcluster-hooks}
- {service_name: index, project_name: taskcluster-index}
- {service_name: events, project_name: taskcluster-events}
- {service_name: notify, project_name: taskcluster-notify}
- {service_name: github, project_name: taskcluster-github}
- {service_name: worker-manager, project_name: taskcluster-worker-manager}
each(svc):
$if: '!(svc.project_name in disabled_services)'
then:
path: '/api/${svc.service_name}/'
backend:
serviceName: ${svc.project_name}
servicePort: 80