ServiceOverrideSchema
The ServiceOverrideSchema represents configuration overrides for services in the ConfidentialMind system. It can be either AiServiceOverrideValues or DBServiceOverrideValues.
AiServiceOverrideValues
Properties
| Property | Type | Description |
|---|---|---|
| args | string[] | Optional array of arguments |
| replicaCount | number | Optional number of replicas |
| image | ImageConfig | Optional image configuration |
| pullPolicy | string | Optional pull policy |
| autoscaling | AutoscalingConfig | Optional autoscaling configuration |
| disableUriRewrite | boolean | Optional option to disable Uri rewrite |
| healthPath | string | Optional health check path |
| startupProbe | StartupProbeConfig | Optional startup probe configuration |
| env | EnvironmentVariable[] | Optional environment variables |
ImageConfig
| Property | Type | Description |
|---|---|---|
| pullPolicy | string | Pull policy for the image |
AutoscalingConfig
| Property | Type | Description |
|---|---|---|
| enabled | boolean | Whether autoscaling is enabled |
| minReplicas | number | Minimum number of replicas |
| maxReplicas | number | Maximum number of replicas |
| targetCPUUtilizationPercentage | number | Target CPU utilization percentage |
StartupProbeConfig
| Property | Type | Description |
|---|---|---|
| healthPath | string | Health check path for startup |
| failureThreshold | number | Failure threshold for startup |
| periodSeconds | number | Period in seconds for startup checks |
EnvironmentVariable
| Property | Type | Description |
|---|---|---|
| name | string | Name of the environment variable |
| value | string | Value of the environment variable |
DBServiceOverrideValues
Properties
| Property | Type | Description |
|---|---|---|
| db | DBConfig | Optional database configuration |
DBConfig
| Property | Type | Description |
|---|---|---|
| vectorDimension | number | Vector dimension for the database |
Usage
This schema is used as part of the metadata field in the ServiceEntrySchema. It allows for fine-tuning of service configurations.
Example
AiServiceOverrideValues
{
"replicaCount": 3,
"image": {
"pullPolicy": "Always"
},
"autoscaling": {
"enabled": true,
"minReplicas": 2,
"maxReplicas": 5,
"targetCPUUtilizationPercentage": 80
},
"env": [
{
"name": "DEBUG",
"value": "true"
},
{
"name": "LOG_LEVEL",
"value": "info"
}
]
}
DBServiceOverrideValues
{
"db": {
"vectorDimension": 1024
}
}
These schemas are used to override default configurations when deploying or updating services in the ConfidentialMind system.