npm install -g ume-deployment-checker
udc <command> <command parameters>
help Display help
check Performs checks based on given parameters and configuration.
print Performs print based on given parameters and configuration. Result is printed into the defined bookkit page.
check, help commands. All these can be used as default commands without providing --command argument.
Base configuration folder path containing env.json files with contexts.json for each environment.
Environment name defined in the base configuration folder unde the filename [env].json.
Display version of all uuApps deployed in the given environment.
Display runtime stack of all uuApps deployed in the given environment.
Display and verify number and status of deployed uuApps in the given environment.
Display uuApp deployment URI of all uuApps deployed in the given environment.
Display uuApp node size of all uuApps deployed in the given environment.
Display uuApp RAM of all uuApps deployed in the given environment.
Display uuApp CPU of all uuApps deployed in the given environment.
Display container uuApp status.
Display and verify uuApp volume mount.
Diplay the ouput in the table form.
Flag applicable for the print task only. Task prints problems only to the specific bookkit page.
{
"uu-app-name": {
"required": true, // identify whether should be checked by the tool at all
"count": 1, // how many instances of the given uuApp with "uu-app-name" expected
"nodeSelectors": [ // expected node selectors, verified with deep equality
{
"key": "kind",
"operator": "In",
"values": [
"app-mpls1"
],
"nodeSize": "NODESIZE_NAME"
},
{
"key": "archive",
"operator": "NotIn",
"values": [
"not"
]
}
]
},
...
[
{
"environment": "env1", // environment name, with same name the env1.json file must exist in the same folder
"context": "env1-context-name", // k8s cluster name to which the tool will switch context via kubectl
"nameSpace": "env1-namespace-name" // cluster namespace where the environment lives
},
...
]
{
"NODESIZE_NAME": {
"cpu": "1",
"memory": "512Mi"
},
...
}
// Another option is to define array of values. This might get handy if different representations are used for the same value.
{
"NODESIZE_NAME": {
"cpu": ["1", "1000m"],
"memory": ["512Mi", "512"]
},
...
}
{
"accessCode1": "...", // login credentials to bookkit (user must have privileges to mannipulate with the book content)
"accessCode2": "...", // login credentials to bookkit (user must have privileges to mannipulate with the book content)
"oidcHost": "...", // oidc/grantToken uri
"uri": "...", // book base uri
"environment": {
"env1": { // environment name, with same name the env1.json file must exist in the same folder
// page and sections codes must already exist in the book. Sections will be updated with content from the ume-deployment-checker
"page": "env1-page-code",
"sections": {
// section codes for each check in the given bookkit page.
"DEPLOYMENT": "",
"NODE_SIZE": "...",
"VERSION": "...",
"RUNTIME_STACK": "...",
"UUAPP_DEPLOYMENT_URI": "...",
"MEMORY": "...",
"CPU": "...",
"CONTAINER_STATUS": "..."
},
// page for reporting the problems only - with this configuration you can have all problems from all environments in one place
"problemReport": {
"page": "...",
"section": "..."
}
},
...
}
}
logs are automatically stored to the %HOME%/.ume-deployment-checker/logs
folder