-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk-calcom-deployment-with-alb.yaml
118 lines (118 loc) · 2.24 KB
/
k-calcom-deployment-with-alb.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: calcom
namespace: calcom
spec:
replicas: 1
selector:
matchLabels:
app: calcom
template:
metadata:
labels:
app: calcom
spec:
containers:
- name: calcom
image: calcom.docker.scarf.sh/calcom/cal.com
ports:
- containerPort: 3000
envFrom:
- configMapRef:
name: calcom-config
resources:
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "2Gi"
cpu: "1"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: calapi
namespace: calcom
spec:
replicas: 1
selector:
matchLabels:
app: calapi
template:
metadata:
labels:
app: calapi
spec:
containers:
- name: calapi
image: 923889749700.dkr.ecr.us-east-2.amazonaws.com/calapi-v3.5.0:latest
ports:
- containerPort: 80
envFrom:
- configMapRef:
name: calcom-config
resources:
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "2Gi"
cpu: "1"
---
apiVersion: v1
kind: Service
metadata:
name: calcom
namespace: calcom
spec:
type: NodePort
selector:
app: calcom
ports:
- protocol: TCP
port: 80
targetPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: calapi
namespace: calcom
spec:
type: NodePort
selector:
app: calapi
ports:
- protocol: TCP
port: 81
targetPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: calcom-ingress
namespace: calcom
annotations:
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
spec:
ingressClassName: alb
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: calcom
port:
number: 80
- path: /api/v1
pathType: Prefix
backend:
service:
name: calapi
port:
number: 81