opsrule
Schema OpsRule
OpsRule describes operation rules for various Day-2 Operations. Once declared, these
operation rules will be checked before any Day-2 operations.
Attributes
name | type | description | default value |
---|---|---|---|
maxUnavailable | int | str | The maximum percentage of the total pod instances in the component that can be simultaneously unhealthy. |
import opsrule as o
import kam.v1.app_configuration
import kam.v1.workload as wl
import kam.v1.workload.container as c
helloworld : ac.AppConfiguration {
workload: wl.Service {
containers: {
"nginx": c.Container {
image: "nginx:v1"
}
}
}
accessories: {
"opsrule" : o.OpsRule {
maxUnavailable: "30%"
}
}
}