[FOLIO-2219] Create script to build Kubernetes deployment yaml from module descriptor metadata Created: 20/Aug/19 Updated: 03/Jun/20 Resolved: 06/Sep/19 |
|
| Status: | Closed |
| Project: | FOLIO |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Task | Priority: | P2 |
| Reporter: | Ian Hardy | Assignee: | Ian Hardy |
| Resolution: | Done | Votes: | 0 |
| Labels: | devops, platform-backlog | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Issue links: |
|
||||||||||||||||||||
| Sprint: | CP: sprint 71 | ||||||||||||||||||||
| Story Points: | 2 | ||||||||||||||||||||
| Development Team: | Core: Platform | ||||||||||||||||||||
| Description |
|
Create a script to build a Kubernetes deployment yaml . This script should be able to run outside CI and use elements from the module descriptor metadata section (memory, java options, etc) and sensible defaults to create the deployment. Look at the folio-ansible/roles/module-kubernetes/templates/ for an example deployment yaml. |
| Comments |
| Comment by Ian Hardy [ 05/Sep/19 ] |
|
I have a PR up for this, the easiest way to run this and check it out is to use the Docker image: cat ModuleDescriptor.json | docker run -i \ folioci/md2kubeyaml One question, Wayne Schneider,David Crossley & others:
Do you think the sensible defaults part is covered by Wayne's work in
|
| Comment by Wayne Schneider [ 05/Sep/19 ] |
|
I think I might be missing where the container memory limit is set? Python is not my first language, so please excuse my ignorance |
| Comment by Ian Hardy [ 05/Sep/19 ] |
|
Thanks Wayne Schneider, that was very much missing. Updated the PR and added a default there. |
| Comment by David Crossley [ 06/Sep/19 ] |
|
I did some basic review, and fixed some minor typos. Yes i reckon that it handles the defaults fine, and it has default for missing "memory" setting. Good. However with my testing, it always uses the default memory. Ran out of time today for testing. |