-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnorthflank-template.json
205 lines (205 loc) · 7.7 KB
/
northflank-template.json
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
{
"apiVersion": "v1.2",
"spec": {
"kind": "Workflow",
"spec": {
"type": "sequential",
"steps": [
{
"kind": "Project",
"ref": "project",
"spec": {
"name": "tigerbeetle",
"region": "europe-west"
}
},
{
"kind": "Workflow",
"spec": {
"type": "sequential",
"context": {
"projectId": "${refs.project.id}"
},
"steps": [
{
"kind": "SecretGroup",
"spec": {
"name": "tbe",
"projectId": "tigerbeetle",
"type": "secret",
"secretType": "environment",
"priority": 10,
"secrets": {
"variables": {
"DATA_FOLDER": "/data",
"TOTAL_REPLICAS": "1",
"ORDERED_REPLICAS": "tb-single"
},
"files": {
"/init.sh": {
"data": "IyBSZXF1aXJlczoKIyAtIERBVEFfRk9MREVSIC0gUGF0aCB0byB2b2x1bWUKIyAtIFJFUExJQ0FfTlVNQkVSIC0gUmVwbGljYSBudW1iZXIsIHN0YXJ0IGZyb20gMAojIC0gT1JERVJFRF9SRVBMSUNBUyAtIENvbW1hIHNlcGFyYXRlZCBsaXN0IG9mIHJlcGxpY2FzLCBpbiBvcmRlciwgaW5jbHVkaW5nIH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EQl9GSUxFfSI=",
"encoding": "utf-8"
}
}
},
"restrictions": {
"restricted": false,
"nfObjects": [],
"tags": []
}
}
},
{
"kind": "DeploymentService",
"spec": {
"deployment": {
"instances": 1,
"storage": {
"ephemeralStorage": {
"storageSize": 1024
},
"shmSize": 64
},
"docker": {
"configType": "customEntrypointCustomCommand",
"customEntrypoint": "ash -c",
"customCommand": "\"chmod +x /init.sh && /init.sh\""
},
"external": {
"imagePath": "ghcr.io/tigerbeetle/tigerbeetle:latest"
},
"metadata": {
"labels": {},
"annotations": {}
}
},
"name": "tb-single",
"projectId": "tigerbeetle",
"billing": {
"deploymentPlan": "nf-compute-200"
},
"ports": [
{
"name": "p01",
"internalPort": 3000,
"protocol": "TCP",
"security": {
"credentials": [],
"policies": [],
"sso": {}
},
"domains": [],
"disableNfDomain": false
}
],
"runtimeEnvironment": {
"REPLICA_NUMBER": "0"
},
"runtimeFiles": {}
},
"ref": "tb-single"
},
{
"kind": "Volume",
"spec": {
"spec": {
"storageSize": 5120,
"storageClassName": "ssd",
"accessMode": "ReadWriteOnce"
},
"name": "tb-single-data",
"mounts": [
{
"containerMountPath": "/data",
"volumeMountPath": ""
}
],
"attachedObjects": [
{
"id": "tb-single",
"type": "service"
}
]
},
"ref": "tb-single-data"
},
{
"kind": "CombinedService",
"spec": {
"name": "tb-bun",
"projectId": "tigerbeetle",
"billing": {
"buildPlan": "nf-compute-400-16",
"deploymentPlan": "nf-compute-100-1"
},
"deployment": {
"instances": 1,
"metadata": {
"labels": {},
"annotations": {}
}
},
"ports": [
{
"name": "site",
"internalPort": 3000,
"public": true,
"security": {
"securePathConfiguration": {
"rules": []
}
},
"protocol": "HTTP",
"domains": []
}
],
"buildSource": "git",
"vcsData": {
"projectUrl": "https://github.com/northflank/tigerbeetle-bun",
"projectType": "github",
"projectBranch": "master",
"accountLogin": "northflank"
},
"buildSettings": {
"dockerfile": {
"buildEngine": "kaniko",
"useCache": false,
"dockerFilePath": "/Dockerfile",
"dockerWorkDir": "/"
}
},
"runtimeEnvironment": {
"TB_PORT": "3000",
"TB_ADDRESSES": "tb-single"
},
"disabledCI": false,
"buildConfiguration": {
"pathIgnoreRules": [],
"isAllowList": false,
"ciIgnoreFlagsEnabled": false
},
"buildArguments": {}
}
}
]
}
}
]
}
},
"name": "tb-bun",
"description": "",
"options": {
"autorun": false,
"concurrencyPolicy": "allow",
"runOnUpdate": false
},
"gitops": {
"repoUrl": "https://github.com/northflank/tigerbeetle-bun",
"vcsService": "github",
"accountLogin": "northflank",
"branch": "master",
"filePath": "/northflank-template.json"
},
"$schema": "https://api.northflank.com/v1/schemas/template"
}