Service Definition
Let's define a service. Create a folder service-defintion
on Desktop (or any other preferred location) and create a file definition.json
with the below content.
service name cannot have _ (underscore) in the name as same is not support by Helm - https://helm.sh/docs/chart_best_practices/conventions/#chart-names
{
"name": "SERVICE_NAME",
"version": "1.0.0-SNAPSHOT",
"team": "sdet",
"components": [
{
"type": "application",
"name": "APPLICATION_NAME",
"version": "1.0.0-SNAPSHOT",
"config": {
"artifact_name": "test",
"artifact_version": "1.0.0",
"build_type": "java",
"build_version": "11"
}
},
{
"type": "rds",
"name": "SERVICE_NAME-rds",
"version": "5.7-1.0.0",
"config": {
"binlog": {
"enable": "false"
}
}
}
]
}
Read more here
Updating a deployed service
You can add or remove component to a deployed service by running the following command. Refer to Add or Remove a component in an already deployed service for more details:
odin operate service --operation operationName --name serviceName --env envName --file fileName
//operationName can be add_component or remove_component
Last updated