-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkubernetes-deployment.yaml
More file actions
105 lines (105 loc) · 2.9 KB
/
kubernetes-deployment.yaml
File metadata and controls
105 lines (105 loc) · 2.9 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-public
namespace: launchblock-services
spec:
replicas: 1
selector:
matchLabels:
app: api-public
namespace: launchblock-services
template:
metadata:
labels:
app: api-public
namespace: launchblock-services
spec:
imagePullSecrets:
- name: private-registry-secret
containers:
- name: api-public
image: private-registry.launchblock.dev/launchblock-services/api-public:latest
env:
- name: PORT
value: "8080"
- name: AUTH_CLIENT_URL
value: "http://api-auth"
- name: ENVIRONMENTS_CLIENT_URL
value: "http://api-envman"
- name: LIFECYCLES_CLIENT_URL
value: "http://api-envman"
- name: VARIABLES_CLIENT_URL
value: "http://api-variables"
- name: PROJECTS_CLIENT_URL
value: "http://api-envman"
- name: GITHUB_CLIENT_URL
value: "http://svc-github"
- name: CONTAINERS_CLIENT_URL
value: "http://api-scaler"
- name: SCALING_CLIENT_URL
value: "http://api-scaler"
- name: LOGS_CLIENT_URL
value: "http://api-logs"
- name: MATCHMAKER_CLIENT_URL
value: "http://svc-matchman"
- name: MONGODB_CONNECTION_STRING
value: "mongodb://mongodb.launchblock-services.svc.cluster.local:27017"
- name: MONGODB_USERNAME
valueFrom:
secretKeyRef:
name: mongodb-secrets
key: username
- name: MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: mongodb-secrets
key: password
- name: PASSWORD_SECRET_KEY
valueFrom:
secretKeyRef:
name: auth-secrets
key: password-secret-key
- name: TOKEN_SALT
valueFrom:
secretKeyRef:
name: auth-secrets
key: token-salt
- name: API_TOKEN_SECRET_KEY
valueFrom:
secretKeyRef:
name: api-public-secrets
key: API_TOKEN_SECRET_KEY
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: api-public
namespace: launchblock-services
spec:
selector:
app: api-public
ports:
- protocol: TCP
port: 80
targetPort: 8080
type: ClusterIP
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: api-public
namespace: launchblock-services
spec:
entryPoints:
- websecure
routes:
- match: Host(`api.launchblock.gg`)
kind: Rule
services:
- name: api-public
port: 80
tls:
certResolver: letsencrypt