This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
forked from auth0/repo-supervisor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes.yaml
87 lines (86 loc) · 1.83 KB
/
kubernetes.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: repo-supervisor
namespace: cloud
spec:
replicas: 2
revisionHistoryLimit: 2
template:
metadata:
labels:
app: repo-supervisor
spec:
containers:
- name: repo-supervisor
image: registry.usw.co/uswitch/repo-supervisor:{{ .Env.DRONE_COMMIT }}
ports:
- containerPort: 7070
env:
- name: HOST
value: "0.0.0.0"
- name: GITHUB_TOKEN
value: {{ .Env.GITHUB_TOKEN }}
- name: JWT_SECRET
value: {{ .Env.GITHUB_TOKEN }}
volumeMounts:
- mountPath: /etc/ssl/certs
name: ssl-certs-host
readOnly: true
- mountPath: /opt/repo-supervisor/.config.json
name: supervisor-config-file
subPath: .config.json
resources:
requests:
memory: 128M
cpu: 10m
limits:
memory: 256M
cpu: 100m
volumes:
- hostPath:
path: /usr/share/ca-certificates
name: ssl-certs-host
- name: supervisor-config-file
configMap:
name: supervisor-config-file
---
apiVersion: v1
kind: Service
metadata:
name: repo-supervisor
namespace: cloud
spec:
ports:
- port: 80
targetPort: 7070
protocol: TCP
selector:
app: repo-supervisor
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: repo-supervisor
namespace: cloud
annotations:
kubernetes.io/ingress.class: external
spec:
rules:
- host: repo-supervisor.usw.co
http:
paths:
- backend:
serviceName: repo-supervisor
servicePort: 80
path: /
---
kind: ConfigMap
apiVersion: v1
metadata:
name: supervisor-config-file
namespace: cloud
data:
.config.json: |
{ "SlackURL": "{{ .Env.SLACK_WEBHOOK }}" }