-
Notifications
You must be signed in to change notification settings - Fork 0
/
openruntimes-executor-deployment.yaml
119 lines (119 loc) · 4.02 KB
/
openruntimes-executor-deployment.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
119
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: ./kompose convert
kompose.version: 1.32.0 (765fde254)
labels:
io.kompose.service: openruntimes-executor
name: openruntimes-executor
namespace: appwrite
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: openruntimes-executor
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: ./kompose convert
kompose.version: 1.32.0 (765fde254)
labels:
io.kompose.network/appwrite: "true"
io.kompose.network/runtimes: "true"
io.kompose.service: openruntimes-executor
spec:
securityContext:
runAsUser: 0
containers:
- env:
- name: OPR_EXECUTOR_DOCKER_HUB_PASSWORD
value:
- name: OPR_EXECUTOR_DOCKER_HUB_USERNAME
value:
- name: OPR_EXECUTOR_ENV
value: production
- name: OPR_EXECUTOR_INACTIVE_TRESHOLD
value: "60"
- name: OPR_EXECUTOR_LOGGING_CONFIG
value:
- name: OPR_EXECUTOR_LOGGING_PROVIDER
value:
- name: OPR_EXECUTOR_MAINTENANCE_INTERVAL
value: "3600"
- name: OPR_EXECUTOR_NETWORK
value:
- name: OPR_EXECUTOR_RUNTIMES
value: node-16.0,php-8.0,python-3.9,ruby-3.0
- name: OPR_EXECUTOR_SECRET
value: your-secret-key
- name: OPR_EXECUTOR_STORAGE_BACKBLAZE_ACCESS_KEY
value:
- name: OPR_EXECUTOR_STORAGE_BACKBLAZE_BUCKET
value:
- name: OPR_EXECUTOR_STORAGE_BACKBLAZE_REGION
value: us-west-004
- name: OPR_EXECUTOR_STORAGE_BACKBLAZE_SECRET
value:
- name: OPR_EXECUTOR_STORAGE_DEVICE
value: local
- name: OPR_EXECUTOR_STORAGE_DO_SPACES_ACCESS_KEY
value:
- name: OPR_EXECUTOR_STORAGE_DO_SPACES_BUCKET
value:
- name: OPR_EXECUTOR_STORAGE_DO_SPACES_REGION
value: us-east-1
- name: OPR_EXECUTOR_STORAGE_DO_SPACES_SECRET
value:
- name: OPR_EXECUTOR_STORAGE_LINODE_ACCESS_KEY
value:
- name: OPR_EXECUTOR_STORAGE_LINODE_BUCKET
value:
- name: OPR_EXECUTOR_STORAGE_LINODE_REGION
value: eu-central-1
- name: OPR_EXECUTOR_STORAGE_LINODE_SECRET
value:
- name: OPR_EXECUTOR_STORAGE_S3_ACCESS_KEY
value:
- name: OPR_EXECUTOR_STORAGE_S3_BUCKET
value:
- name: OPR_EXECUTOR_STORAGE_S3_REGION
value: us-east-1
- name: OPR_EXECUTOR_STORAGE_S3_SECRET
value:
- name: OPR_EXECUTOR_STORAGE_WASABI_ACCESS_KEY
value:
- name: OPR_EXECUTOR_STORAGE_WASABI_BUCKET
value:
- name: OPR_EXECUTOR_STORAGE_WASABI_REGION
value: eu-central-1
- name: OPR_EXECUTOR_STORAGE_WASABI_SECRET
value:
image: openruntimes/executor:0.4.5
name: openruntimes-executor
volumeMounts:
- mountPath: /var/run/docker.sock
name: openruntimes-executor-claim0
- mountPath: /storage/builds
name: appwrite-builds
- mountPath: /storage/functions
name: appwrite-functions
- mountPath: /tmp
name: openruntimes-executor-claim3
hostname: appwrite-executor
restartPolicy: Always
volumes:
- name: openruntimes-executor-claim0
hostPath:
path: /var/run/docker.sock
- name: appwrite-builds
persistentVolumeClaim:
claimName: appwrite-builds
- name: appwrite-functions
persistentVolumeClaim:
claimName: appwrite-functions
- name: openruntimes-executor-claim3
hostPath:
path: /tmp