underpost 2.8.6 → 2.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/.vscode/extensions.json +36 -3
  2. package/.vscode/settings.json +2 -0
  3. package/CHANGELOG.md +24 -4
  4. package/Dockerfile +9 -10
  5. package/README.md +41 -2
  6. package/bin/build.js +2 -2
  7. package/bin/db.js +1 -0
  8. package/bin/deploy.js +1521 -130
  9. package/bin/file.js +8 -0
  10. package/bin/index.js +1 -218
  11. package/cli.md +530 -0
  12. package/conf.js +4 -0
  13. package/docker-compose.yml +1 -1
  14. package/jsdoc.json +1 -1
  15. package/manifests/deployment/adminer/deployment.yaml +32 -0
  16. package/manifests/deployment/adminer/kustomization.yaml +7 -0
  17. package/manifests/deployment/adminer/service.yaml +13 -0
  18. package/manifests/deployment/dd-template-development/deployment.yaml +167 -0
  19. package/manifests/deployment/dd-template-development/proxy.yaml +46 -0
  20. package/manifests/deployment/fastapi/backend-deployment.yml +120 -0
  21. package/manifests/deployment/fastapi/backend-service.yml +19 -0
  22. package/manifests/deployment/fastapi/frontend-deployment.yml +54 -0
  23. package/manifests/deployment/fastapi/frontend-service.yml +15 -0
  24. package/manifests/deployment/fastapi/initial_data.sh +56 -0
  25. package/manifests/deployment/kafka/deployment.yaml +69 -0
  26. package/manifests/deployment/spark/spark-pi-py.yaml +21 -0
  27. package/manifests/envoy-service-nodeport.yaml +23 -0
  28. package/manifests/kubeadm-calico-config.yaml +119 -0
  29. package/manifests/kubelet-config.yaml +65 -0
  30. package/manifests/lxd/lxd-admin-profile.yaml +17 -0
  31. package/manifests/lxd/lxd-preseed.yaml +30 -0
  32. package/manifests/lxd/underpost-setup.sh +163 -0
  33. package/manifests/maas/lxd-preseed.yaml +32 -0
  34. package/manifests/maas/maas-setup.sh +82 -0
  35. package/manifests/mariadb/statefulset.yaml +2 -1
  36. package/manifests/mariadb/storage-class.yaml +10 -0
  37. package/manifests/mongodb/kustomization.yaml +1 -1
  38. package/manifests/mongodb/statefulset.yaml +12 -11
  39. package/manifests/mongodb/storage-class.yaml +9 -0
  40. package/manifests/mongodb-4.4/service-deployment.yaml +3 -3
  41. package/manifests/mysql/kustomization.yaml +7 -0
  42. package/manifests/mysql/pv-pvc.yaml +27 -0
  43. package/manifests/mysql/statefulset.yaml +55 -0
  44. package/manifests/postgresql/configmap.yaml +9 -0
  45. package/manifests/postgresql/kustomization.yaml +10 -0
  46. package/manifests/postgresql/pv.yaml +15 -0
  47. package/manifests/postgresql/pvc.yaml +13 -0
  48. package/manifests/postgresql/service.yaml +10 -0
  49. package/manifests/postgresql/statefulset.yaml +37 -0
  50. package/manifests/valkey/service.yaml +3 -9
  51. package/manifests/valkey/statefulset.yaml +12 -13
  52. package/package.json +3 -9
  53. package/src/api/default/default.service.js +1 -1
  54. package/src/api/user/user.service.js +14 -11
  55. package/src/cli/baremetal.js +60 -0
  56. package/src/cli/cluster.js +551 -65
  57. package/src/cli/cron.js +39 -8
  58. package/src/cli/db.js +20 -10
  59. package/src/cli/deploy.js +288 -86
  60. package/src/cli/env.js +10 -4
  61. package/src/cli/fs.js +21 -9
  62. package/src/cli/image.js +116 -124
  63. package/src/cli/index.js +319 -0
  64. package/src/cli/lxd.js +395 -0
  65. package/src/cli/monitor.js +236 -0
  66. package/src/cli/repository.js +14 -8
  67. package/src/client/components/core/Account.js +28 -24
  68. package/src/client/components/core/Blockchain.js +1 -1
  69. package/src/client/components/core/CalendarCore.js +14 -84
  70. package/src/client/components/core/CommonJs.js +2 -1
  71. package/src/client/components/core/Css.js +0 -1
  72. package/src/client/components/core/CssCore.js +10 -2
  73. package/src/client/components/core/Docs.js +1 -1
  74. package/src/client/components/core/EventsUI.js +3 -3
  75. package/src/client/components/core/FileExplorer.js +86 -78
  76. package/src/client/components/core/JoyStick.js +2 -2
  77. package/src/client/components/core/LoadingAnimation.js +1 -17
  78. package/src/client/components/core/LogIn.js +3 -3
  79. package/src/client/components/core/LogOut.js +1 -1
  80. package/src/client/components/core/Modal.js +14 -8
  81. package/src/client/components/core/Panel.js +19 -61
  82. package/src/client/components/core/PanelForm.js +13 -22
  83. package/src/client/components/core/Recover.js +3 -3
  84. package/src/client/components/core/RichText.js +1 -11
  85. package/src/client/components/core/Router.js +3 -1
  86. package/src/client/components/core/SignUp.js +2 -2
  87. package/src/client/components/default/RoutesDefault.js +3 -2
  88. package/src/client/services/default/default.management.js +45 -38
  89. package/src/client/ssr/Render.js +2 -0
  90. package/src/index.js +34 -2
  91. package/src/mailer/MailerProvider.js +3 -0
  92. package/src/runtime/lampp/Dockerfile +65 -0
  93. package/src/server/client-build.js +13 -0
  94. package/src/server/conf.js +151 -1
  95. package/src/server/dns.js +56 -18
  96. package/src/server/json-schema.js +77 -0
  97. package/src/server/logger.js +3 -3
  98. package/src/server/network.js +7 -122
  99. package/src/server/peer.js +2 -2
  100. package/src/server/proxy.js +4 -4
  101. package/src/server/runtime.js +24 -11
  102. package/src/server/start.js +122 -0
  103. package/src/server/valkey.js +27 -13
package/cli.md ADDED
@@ -0,0 +1,530 @@
1
+ ## underpost ci/cd cli v2.8.8
2
+
3
+ ### Usage: `underpost [options] [command]`
4
+ ```
5
+ Options:
6
+ -V, --version output the version number
7
+ -h, --help display help for command
8
+
9
+ Commands:
10
+ new <app-name> Create a new project
11
+ start [options] <deploy-id> [env] Start up server, build pipelines, or services
12
+ clone [options] <uri> Clone github repository
13
+ pull [options] <path> <uri> Pull github repository
14
+ cmt [options] <path> <commit-type> [module-tag] [message] Commit github repository
15
+ push [options] <path> <uri> Push github repository
16
+ env <deploy-id> [env] Set environment variables files and conf related to <deploy-id>
17
+ config [options] <operator> [key] [value] Manage configuration, operators
18
+ root Get npm root path
19
+ cluster [options] [pod-name] Manage cluster, for default initialization base kind cluster
20
+ deploy [options] [deploy-list] [env] Manage deployment, for default deploy development pods
21
+ secret [options] <platform> Manage secrets
22
+ dockerfile-image-build [options] Build image from Dockerfile
23
+ dockerfile-pull-base-images [options] Pull underpost dockerfile images requirements
24
+ install Fast import underpost npm dependencies
25
+ db [options] <deploy-list> Manage databases
26
+ script [options] <operator> <script-name> [script-value] Supports a number of built-in underpost global scripts and their preset life cycle events as well as arbitrary scripts
27
+ cron [options] [deploy-list] [job-list] Cron jobs management
28
+ fs [options] [path] File storage management, for default upload file
29
+ test [options] [deploy-list] Manage Test, for default run current underpost default test
30
+ monitor [options] <deploy-id> [env] Monitor health server management
31
+ lxd [options] Lxd management
32
+ baremetal [options] Baremetal management
33
+ help [command] display help for command
34
+
35
+ ```
36
+
37
+ ## Commands:
38
+
39
+
40
+ ### `new` :
41
+ ```
42
+ Usage: underpost new [options] <app-name>
43
+
44
+ Create a new project
45
+
46
+ Arguments:
47
+ app-name Application name
48
+
49
+ Options:
50
+ -h, --help display help for command
51
+
52
+ ```
53
+
54
+
55
+ ### `start` :
56
+ ```
57
+ Usage: underpost start [options] <deploy-id> [env]
58
+
59
+ Start up server, build pipelines, or services
60
+
61
+ Arguments:
62
+ deploy-id Deploy configuration id
63
+ env Optional environment, for default is development
64
+
65
+ Options:
66
+ --run Run app servers and monitor health server
67
+ --build Build app client
68
+ -h, --help display help for command
69
+
70
+ ```
71
+
72
+
73
+ ### `clone` :
74
+ ```
75
+ Usage: underpost clone [options] <uri>
76
+
77
+ Clone github repository
78
+
79
+ Arguments:
80
+ uri e.g. username/repository
81
+
82
+ Options:
83
+ --bare Clone only .git files
84
+ -g8 Use g8 repo extension
85
+ -h, --help display help for command
86
+
87
+ ```
88
+
89
+
90
+ ### `pull` :
91
+ ```
92
+ Usage: underpost pull [options] <path> <uri>
93
+
94
+ Pull github repository
95
+
96
+ Arguments:
97
+ path Absolute or relative directory
98
+ uri e.g. username/repository
99
+
100
+ Options:
101
+ -g8 Use g8 repo extension
102
+ -h, --help display help for command
103
+
104
+ ```
105
+
106
+
107
+ ### `cmt` :
108
+ ```
109
+ Usage: underpost cmt [options] <path> <commit-type> [module-tag] [message]
110
+
111
+ Commit github repository
112
+
113
+ Arguments:
114
+ path Absolute or relative directory
115
+ commit-type Options:
116
+ feat,fix,docs,style,refactor,perf,cd,test,build,ci,chore,revert,backup
117
+ module-tag Optional set module tag
118
+ message Optional set additional message
119
+
120
+ Options:
121
+ --empty Allow empty files
122
+ --copy Copy to clipboard message
123
+ --info Info commit types
124
+ -h, --help display help for command
125
+
126
+ ```
127
+
128
+
129
+ ### `push` :
130
+ ```
131
+ Usage: underpost push [options] <path> <uri>
132
+
133
+ Push github repository
134
+
135
+ Arguments:
136
+ path Absolute or relative directory
137
+ uri e.g. username/repository
138
+
139
+ Options:
140
+ -f Force push overwriting repository
141
+ -g8 Use g8 repo extension
142
+ -h, --help display help for command
143
+
144
+ ```
145
+
146
+
147
+ ### `env` :
148
+ ```
149
+ Usage: underpost env [options] <deploy-id> [env]
150
+
151
+ Set environment variables files and conf related to <deploy-id>
152
+
153
+ Arguments:
154
+ deploy-id deploy configuration id, if 'clean' restore default
155
+ env Optional environment, for default is production
156
+
157
+ Options:
158
+ -h, --help display help for command
159
+
160
+ ```
161
+
162
+
163
+ ### `config` :
164
+ ```
165
+ Usage: underpost config [options] <operator> [key] [value]
166
+
167
+ Manage configuration, operators
168
+
169
+ Arguments:
170
+ operator Options: set,delete,get,list,clean
171
+ key Config key
172
+ value Config value
173
+
174
+ Options:
175
+ --plain Print plain value
176
+ -h, --help display help for command
177
+
178
+ ```
179
+
180
+
181
+ ### `root` :
182
+ ```
183
+ Usage: underpost root [options]
184
+
185
+ Get npm root path
186
+
187
+ Options:
188
+ -h, --help display help for command
189
+
190
+ ```
191
+
192
+
193
+ ### `cluster` :
194
+ ```
195
+ Usage: underpost cluster [options] [pod-name]
196
+
197
+ Manage cluster, for default initialization base kind cluster
198
+
199
+ Arguments:
200
+ pod-name Optional pod name filter
201
+
202
+ Options:
203
+ --reset Delete all clusters and prune all data and caches
204
+ --mariadb Init with mariadb statefulset
205
+ --mysql Init with mysql statefulset
206
+ --mongodb Init with mongodb statefulset
207
+ --postgresql Init with postgresql statefulset
208
+ --mongodb4 Init with mongodb 4.4 service
209
+ --valkey Init with valkey service
210
+ --contour Init with project contour base HTTPProxy and envoy
211
+ --cert-manager Init with letsencrypt-prod ClusterIssuer
212
+ --dedicated-gpu Init with dedicated gpu base resources env
213
+ --info Get all kinds objects deployed
214
+ --full Init with all statefulsets and services available
215
+ --ns-use <ns-name> Switches current context to namespace
216
+ --kubeadm Init with kubeadm controlplane management
217
+ --dev init with dev cluster
218
+ --list-pods Display list pods information
219
+ --info-capacity display current total machine capacity info
220
+ --info-capacity-pod display current machine capacity pod info
221
+ --pull-image Set optional pull associated image
222
+ --init-host Install k8s node necessary cli env: kind, kubeadm,
223
+ docker, podman, helm
224
+ --config Set k8s base node config
225
+ --worker Set worker node context
226
+ --chown Set k8s kube chown
227
+ --k3s Initialize the cluster using K3s
228
+ -h, --help display help for command
229
+
230
+ ```
231
+
232
+
233
+ ### `deploy` :
234
+ ```
235
+ Usage: underpost deploy [options] [deploy-list] [env]
236
+
237
+ Manage deployment, for default deploy development pods
238
+
239
+ Arguments:
240
+ deploy-list Deploy id list, e.g. default-a,default-b
241
+ env Optional environment, for default is
242
+ development
243
+
244
+ Options:
245
+ --remove Delete deployments and services
246
+ --sync Sync deployments env, ports, and replicas
247
+ --info-router Display router structure
248
+ --expose Expose service match deploy-list
249
+ --info-util Display kubectl util management commands
250
+ --cert Reset tls/ssl certificate secrets
251
+ --build-manifest Build kind yaml manifests: deployments,
252
+ services, proxy and secrets
253
+ --dashboard-update Update dashboard instance data with current
254
+ router config
255
+ --replicas <replicas> Set custom number of replicas
256
+ --versions <deployment-versions> Comma separated custom deployment versions
257
+ --traffic <traffic-versions> Comma separated custom deployment traffic
258
+ --disable-update-deployment Disable update deployments
259
+ --info-traffic get traffic conf form current resources
260
+ deployments
261
+ --kubeadm Enable kubeadm context
262
+ --restore-hosts Restore defautl etc hosts
263
+ --rebuild-clients-bundle Inside container, rebuild clients bundle,
264
+ only static public or storage client files
265
+ -h, --help display help for command
266
+
267
+ ```
268
+
269
+
270
+ ### `secret` :
271
+ ```
272
+ Usage: underpost secret [options] <platform>
273
+
274
+ Manage secrets
275
+
276
+ Arguments:
277
+ platform Options: docker,underpost
278
+
279
+ Options:
280
+ --init Init secrets platform environment
281
+ --create-from-file <path-env-file> Create secret from env file
282
+ --list Lists secrets
283
+ -h, --help display help for command
284
+
285
+ ```
286
+
287
+
288
+ ### `dockerfile-image-build` :
289
+ ```
290
+ Usage: underpost dockerfile-image-build [options]
291
+
292
+ Build image from Dockerfile
293
+
294
+ Options:
295
+ --path [path] Dockerfile path
296
+ --image-name [image-name] Set image name
297
+ --image-path [image-path] Set tar image path
298
+ --dockerfile-name [dockerfile-name] set Dockerfile name
299
+ --podman-save Export tar file from podman
300
+ --kind-load Import tar image to Kind cluster
301
+ --kubeadm-load Import tar image to Kubeadm cluster
302
+ --secrets Dockerfile env secrets
303
+ --secrets-path [secrets-path] Dockerfile custom path env secrets
304
+ --reset Build without using cache
305
+ --k3s-load Load image into K3s cluster.
306
+ -h, --help display help for command
307
+
308
+ ```
309
+
310
+
311
+ ### `dockerfile-pull-base-images` :
312
+ ```
313
+ Usage: underpost dockerfile-pull-base-images [options]
314
+
315
+ Pull underpost dockerfile images requirements
316
+
317
+ Options:
318
+ --path [path] Dockerfile path
319
+ --kind-load Import tar image to Kind cluster
320
+ --kubeadm-load Import tar image to Kubeadm cluster
321
+ --version Set custom version
322
+ --k3s-load Load image into K3s cluster.
323
+ -h, --help display help for command
324
+
325
+ ```
326
+
327
+
328
+ ### `install` :
329
+ ```
330
+ Usage: underpost install [options]
331
+
332
+ Fast import underpost npm dependencies
333
+
334
+ Options:
335
+ -h, --help display help for command
336
+
337
+ ```
338
+
339
+
340
+ ### `db` :
341
+ ```
342
+ Usage: underpost db [options] <deploy-list>
343
+
344
+ Manage databases
345
+
346
+ Arguments:
347
+ deploy-list Deploy id list, e.g. default-a,default-b
348
+
349
+ Options:
350
+ --import Import container backups from repositories
351
+ --export Export container backups to repositories
352
+ --pod-name <pod-name> Optional pod context
353
+ --collections <collections> Comma separated collections
354
+ --out-path <out-path> Custom out path backup
355
+ --drop Drop databases
356
+ --preserveUUID Preserve Ids
357
+ --git Upload to github
358
+ --hosts <hosts> Comma separated hosts
359
+ --paths <paths> Comma separated paths
360
+ --ns <ns-name> Optional name space context
361
+ -h, --help display help for command
362
+
363
+ ```
364
+
365
+
366
+ ### `script` :
367
+ ```
368
+ Usage: underpost script [options] <operator> <script-name> [script-value]
369
+
370
+ Supports a number of built-in underpost global scripts and their preset life
371
+ cycle events as well as arbitrary scripts
372
+
373
+ Arguments:
374
+ operator Options: set,run,get
375
+ script-name Script name
376
+ script-value Literal command, or path
377
+
378
+ Options:
379
+ --itc Inside container execution context
380
+ --itc-path Inside container path options
381
+ --ns <ns-name> Options name space context
382
+ --pod-name <pod-name>
383
+ -h, --help display help for command
384
+
385
+ ```
386
+
387
+
388
+ ### `cron` :
389
+ ```
390
+ Usage: underpost cron [options] [deploy-list] [job-list]
391
+
392
+ Cron jobs management
393
+
394
+ Arguments:
395
+ deploy-list Deploy id list, e.g. default-a,default-b
396
+ job-list Deploy id list, e.g. callback,updateDashboardData, for
397
+ default all available jobs
398
+
399
+ Options:
400
+ --itc Inside container execution context
401
+ --init Init cron jobs for cron job default deploy id
402
+ --git Upload to github
403
+ --dashboard-update Update dashboard cron data with current jobs config
404
+ -h, --help display help for command
405
+
406
+ ```
407
+
408
+
409
+ ### `fs` :
410
+ ```
411
+ Usage: underpost fs [options] [path]
412
+
413
+ File storage management, for default upload file
414
+
415
+ Arguments:
416
+ path Absolute or relative directory
417
+
418
+ Options:
419
+ --rm Remove file
420
+ --git Current git changes
421
+ --recursive Upload files recursively
422
+ --deploy-id <deploy-id> Deploy configuration id
423
+ --pull Download file
424
+ --force Force action
425
+ --storage-file-path <storage-file-path> custom file storage path
426
+ -h, --help display help for command
427
+
428
+ ```
429
+
430
+
431
+ ### `test` :
432
+ ```
433
+ Usage: underpost test [options] [deploy-list]
434
+
435
+ Manage Test, for default run current underpost default test
436
+
437
+ Arguments:
438
+ deploy-list Deploy id list, e.g. default-a,default-b
439
+
440
+ Options:
441
+ --itc Inside container execution context
442
+ --sh Copy to clipboard, container entrypoint shell
443
+ command
444
+ --logs Display container logs
445
+ --pod-name <pod-name>
446
+ --pod-status <pod-status>
447
+ --kind-type <kind-type>
448
+ -h, --help display help for command
449
+
450
+ ```
451
+
452
+
453
+ ### `monitor` :
454
+ ```
455
+ Usage: underpost monitor [options] <deploy-id> [env]
456
+
457
+ Monitor health server management
458
+
459
+ Arguments:
460
+ deploy-id Deploy configuration id
461
+ env Optional environment, for default is development
462
+
463
+ Options:
464
+ --ms-interval <ms-interval> Custom ms interval delta time
465
+ --now Exec immediately monitor script
466
+ --single Disable recurrence
467
+ --replicas <replicas> Set custom number of replicas
468
+ --type <type> Set custom monitor type
469
+ --sync Sync with current proxy deployments proxy
470
+ traffic
471
+ -h, --help display help for command
472
+
473
+ ```
474
+
475
+
476
+ ### `lxd` :
477
+ ```
478
+ Usage: underpost lxd [options]
479
+
480
+ Lxd management
481
+
482
+ Options:
483
+ --init Init lxd
484
+ --reset Reset lxd on current machine
485
+ --install Install lxd on current machine
486
+ --dev Set dev context env
487
+ --create-virtual-network Create lxd virtual network bridge
488
+ --create-admin-profile Create admin profile for lxd management
489
+ --control set control node vm context
490
+ --worker set worker node context
491
+ --create-vm <vm-id> Create default virtual machines
492
+ --init-vm <vm-id> Get init vm underpost script
493
+ --info-vm <vm-id> Get all info vm
494
+ --test <vm-id> Test health, status and network connectivity
495
+ for a VM
496
+ --root-size <gb-size> Set root size vm
497
+ --k3s Flag to indicate K3s cluster type for VM
498
+ initialization
499
+ --join-node <nodes> Comma separated worker and control node e.
500
+ g. k8s-worker-1,k8s-control
501
+ --expose <vm-name-ports> Vm name and : separated with Comma separated
502
+ vm port to expose e. g. k8s-control:80,443
503
+ --delete-expose <vm-name-ports> Vm name and : separated with Comma separated
504
+ vm port to remove expose e. g.
505
+ k8s-control:80,443
506
+ --auto-expose-k8s-ports <vm-id> Automatically expose common Kubernetes ports
507
+ for the VM.
508
+ -h, --help display help for command
509
+
510
+ ```
511
+
512
+
513
+ ### `baremetal` :
514
+ ```
515
+ Usage: underpost baremetal [options]
516
+
517
+ Baremetal management
518
+
519
+ Options:
520
+ --control-server-install Install baremetal control server
521
+ --control-server-init-db Setup database baremetal control server
522
+ --control-server-init Init baremetal control server
523
+ --control-server-uninstall Uninstall baremetal control server
524
+ --control-server-stop Stop baremetal control server
525
+ --control-server-start Start baremetal control server
526
+ --dev Set dev context env
527
+ -h, --help display help for command
528
+
529
+ ```
530
+
package/conf.js CHANGED
@@ -164,6 +164,10 @@ const DefaultConf = /**/ {
164
164
  auth: { user: 'noreply@default.net', pass: '' },
165
165
  },
166
166
  },
167
+ valkey: {
168
+ port: 6379,
169
+ host: '127.0.0.1',
170
+ },
167
171
  },
168
172
  },
169
173
  'www.default.net': {
@@ -58,7 +58,7 @@ services:
58
58
  cpus: '0.25'
59
59
  memory: 20M
60
60
  labels: # labels in Compose file instead of Dockerfile
61
- engine.version: '2.8.6'
61
+ engine.version: '2.8.8'
62
62
  networks:
63
63
  - load-balancer
64
64
 
package/jsdoc.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "homepageTitle": "Docs",
24
24
  "favicon": "./public/www.nexodev.org/"
25
25
  },
26
- "tutorials": "./public/www.nexodev.org/docs/learn"
26
+ "tutorials": "./public/www.nexodev.org/docs/references"
27
27
  },
28
28
  "markdown": {
29
29
  "hardwrap": false,
@@ -0,0 +1,32 @@
1
+ apiVersion: apps/v1
2
+ kind: Deployment
3
+ metadata:
4
+ name: adminer
5
+ labels:
6
+ app: adminer
7
+ group: db
8
+ spec:
9
+ replicas: 1
10
+ selector:
11
+ matchLabels:
12
+ app: adminer
13
+ template:
14
+ metadata:
15
+ labels:
16
+ app: adminer
17
+ group: db
18
+ spec:
19
+ containers:
20
+ - name: adminer
21
+ image: adminer:4.7.6-standalone
22
+ ports:
23
+ - containerPort: 8080
24
+ env:
25
+ - name: ADMINER_DESIGN
26
+ value: pepa-linha
27
+ - name: ADMINER_DEFAULT_SERVER
28
+ value: postgres
29
+ resources:
30
+ limits:
31
+ memory: '256Mi'
32
+ cpu: '500m'
@@ -0,0 +1,7 @@
1
+ ---
2
+ # kubectl apply -k manifests/deployment/adminer/.
3
+ apiVersion: kustomize.config.k8s.io/v1beta1
4
+ kind: Kustomization
5
+ resources:
6
+ - deployment.yaml
7
+ - service.yaml
@@ -0,0 +1,13 @@
1
+ apiVersion: v1
2
+ kind: Service
3
+ metadata:
4
+ name: adminer
5
+ labels:
6
+ group: db
7
+ spec:
8
+ type: ClusterIP
9
+ selector:
10
+ app: adminer
11
+ ports:
12
+ - port: 8079
13
+ targetPort: 8080