Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
227 changes: 227 additions & 0 deletions k8s-deployment-otel/values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Values Schema",
"type": "object",
"properties": {
"fullnameOverride": {
"type": "string",
"description": "String to fully override deployment.fullname template"
},
"image": {
"type": "object",
"properties": {
"repository": {
"type": "string",
"minLength": 1,
"description": "Image repository (e.g. ghcr.io/org/app)"
},
"tag": {
"type": "string",
"minLength": 1,
"description": "Image tag (e.g. v1.2.3 or latest)"
},
"pullPolicy": {
"type": "string",
"enum": ["Always", "IfNotPresent", "Never"]
}
},
"required": ["repository", "tag", "pullPolicy"]
},
"env": {
"type": "array",
"description": "Environment variables for containers",
"items": {
"type": "object",
"properties": {
"name": { "type": "string", "minLength": 1 },
"value": { "type": "string" },
"valueFrom": {
"type": "object",
"properties": {
"secretKeyRef": {
"type": "object",
"properties": {
"name": { "type": "string" },
"key": { "type": "string" }
},
"required": ["name", "key"]
}
}
}
},
"required": ["name"]
}
},
"podAnnotations": {
"type": "object",
"additionalProperties": { "type": "string" }
},
"podLabels": {
"type": "object",
"additionalProperties": { "type": "string" }
},
"commonLabels": {
"type": "object",
"additionalProperties": { "type": "string" }
},
"serviceAccount": {
"type": "object",
"properties": {
"annotations": {
"type": "object",
"additionalProperties": { "type": "string" }
},
"imagePullSecrets": { "type": "array", "items": { "type": "string" } }
}
},
"livenessProbe": { "type": "object" },
"readinessProbe": { "type": "object" },
"podSecurityContext": { "type": "object" },
"containerSecurityContext": { "type": "object" },
"containerPorts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"containerPort": { "type": "integer" },
"protocol": { "type": "string" }
},
"required": ["name", "containerPort", "protocol"]
}
},
"servicePorts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"port": { "type": "integer" },
"targetPort": { "type": ["string", "integer"] },
"protocol": { "type": "string" },
"name": { "type": "string" }
},
"required": ["port", "targetPort", "protocol", "name"]
}
},
"resources": { "type": "object" },
"nodeSelector": {
"type": "object",
"additionalProperties": { "type": "string" }
},
"tolerations": { "type": "array", "items": { "type": "object" } },
"affinity": { "type": "object" },
"secrets": { "type": "array", "items": { "type": "string" } },
"command": { "type": "array", "items": { "type": "string" } },
"args": { "type": "array", "items": { "type": "string" } },
"initContainers": { "type": "array", "items": { "type": "object" } },
"volumeMounts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"mountPath": { "type": "string" },
"readOnly": { "type": "boolean" }
},
"required": ["name", "mountPath"]
}
},
"volumes": { "type": "array", "items": { "type": "object" } },
"replicaCount": {
"type": "integer",
"minimum": 1,
"description": "Number of replicas to deploy"
},
"autoscaling": {
"type": "object",
"properties": {
"enabled": { "type": "boolean" },
"minReplicas": { "type": "integer", "minimum": 1 },
"maxReplicas": { "type": "integer", "minimum": 1 },
"targetCPU": { "type": "integer", "minimum": 1 },
"targetMemory": { "type": "integer", "minimum": 1 }
},
"required": [
"enabled",
"minReplicas",
"maxReplicas",
"targetCPU",
"targetMemory"
]
},
"serviceMonitor": {
"type": "object",
"properties": {
"create": { "type": "boolean" },
"endpoints": {
"type": "array",
"items": {
"type": "object",
"properties": {
"port": { "type": "string" },
"path": { "type": "string" },
"interval": { "type": "string" }
},
"required": ["port", "path"]
}
}
}
},
"configmap": {
"type": "object",
"properties": {
"create": { "type": "boolean" },
"mountPath": { "type": "string" },
"data": {
"type": "object",
"additionalProperties": { "type": "string" }
}
}
},
"instrumentation": {
"type": "object",
"properties": {
"enabled": { "type": "boolean" },
"sampler": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"always_on",
"always_off",
"parentbased_traceidratio",
"traceidratio"
],
"description": "Sampler type for OpenTelemetry"
},
"argument": { "type": "string" }
},
"required": ["type"]
},
"language": {
"type": "string",
"enum": ["java", "dotnet", "python", "nodejs"],
"description": "Language used for OpenTelemetry instrumentation"
},
"extraEnv": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"value": { "type": ["string", "boolean"] }
},
"required": ["name"]
}
},
"image": {
"type": "string",
"description": "Optional OpenTelemetry auto-instrumentation image"
}
},
"required": ["enabled", "sampler", "language"]
}
},
"required": ["image", "replicaCount", "autoscaling"]
}
Loading