Skip to main content

ServiceOverrideSchema

The ServiceOverrideSchema represents configuration overrides for services in the ConfidentialMind system. It can be either AiServiceOverrideValues or DBServiceOverrideValues.

AiServiceOverrideValues

Properties

PropertyTypeDescription
argsstring[]Optional array of arguments
replicaCountnumberOptional number of replicas
imageImageConfigOptional image configuration
pullPolicystringOptional pull policy
autoscalingAutoscalingConfigOptional autoscaling configuration
disableUriRewritebooleanOptional option to disable Uri rewrite
healthPathstringOptional health check path
startupProbeStartupProbeConfigOptional startup probe configuration
envEnvironmentVariable[]Optional environment variables

ImageConfig

PropertyTypeDescription
pullPolicystringPull policy for the image

AutoscalingConfig

PropertyTypeDescription
enabledbooleanWhether autoscaling is enabled
minReplicasnumberMinimum number of replicas
maxReplicasnumberMaximum number of replicas
targetCPUUtilizationPercentagenumberTarget CPU utilization percentage

StartupProbeConfig

PropertyTypeDescription
healthPathstringHealth check path for startup
failureThresholdnumberFailure threshold for startup
periodSecondsnumberPeriod in seconds for startup checks

EnvironmentVariable

PropertyTypeDescription
namestringName of the environment variable
valuestringValue of the environment variable

DBServiceOverrideValues

Properties

PropertyTypeDescription
dbDBConfigOptional database configuration

DBConfig

PropertyTypeDescription
vectorDimensionnumberVector 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.