forked from elekto-dev/elekto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
50 lines (50 loc) · 1.19 KB
/
deployment.yaml
File metadata and controls
50 lines (50 loc) · 1.19 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: elekto
namespace: elekto
labels:
app: elekto
spec:
replicas: 1
selector:
matchLabels:
app: elekto
strategy:
type: Recreate
template:
metadata:
labels:
app: elekto
spec:
containers:
- image: ghcr.io/elekto-dev/elekto:sha-83523b4
imagePullPolicy: Always
name: elekto
ports:
- containerPort: 8080
protocol: TCP
readinessProbe:
failureThreshold: 5
httpGet:
path: /health
port: 8080
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 60
timeoutSeconds: 5
resources:
limits:
memory: 1500M
securityContext:
allowPrivilegeEscalation: false
privileged: false
envFrom:
- configMapRef:
name: elekto-config
- secretRef:
name: elekto-secret
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
restartPolicy: Always
terminationGracePeriodSeconds: 30