-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvalues.schema.json
More file actions
380 lines (380 loc) · 11.3 KB
/
Copy pathvalues.schema.json
File metadata and controls
380 lines (380 loc) · 11.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Kagent Helm Chart Values",
"description": "Configuration values for deploying Kentik Universal Agent (kagent) via Helm",
"type": "object",
"required": ["kagent"],
"properties": {
"deploymentType": {
"type": "string",
"enum": ["statefulset", "daemonset"],
"default": "statefulset",
"description": "Kubernetes workload type for agent deployment"
},
"replicaCount": {
"type": "integer",
"minimum": 1,
"default": 1,
"description": "Number of replicas (ignored for DaemonSet)"
},
"image": {
"type": "object",
"properties": {
"repository": {
"type": "string",
"default": "kentik/kagent",
"description": "Container image repository"
},
"pullPolicy": {
"type": "string",
"enum": ["Always", "IfNotPresent", "Never"],
"default": "IfNotPresent",
"description": "Image pull policy"
},
"tag": {
"type": "string",
"default": "v5.0.1",
"description": "Image tag (overrides Chart.AppVersion)"
}
}
},
"kagent": {
"type": "object",
"required": ["companyId", "provisioningToken"],
"properties": {
"companyId": {
"type": "string",
"minLength": 1,
"description": "Kentik company identifier for agent scoping (REQUIRED)"
},
"provisioningToken": {
"type": "string",
"minLength": 1,
"description": "Provisioning token for agent registration (REQUIRED)"
},
"agentId": {
"type": "string",
"description": "Agent ID from CreateAgent API for Terraform tracking (optional)"
},
"releaseChannel": {
"type": "string",
"enum": ["stable", "beta", "dev"],
"default": "stable",
"description": "Update channel for agent binary downloads"
},
"logDest": {
"type": "string",
"default": "stdout",
"description": "Logging destination (stdout, stderr, discard, or file path)"
},
"healthCheck": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enable health check HTTP server (K_HC_SERVER_ENABLED)"
},
"network": {
"type": "string",
"enum": ["tcp", "tcp4", "tcp6"],
"default": "tcp4",
"description": "Network protocol for health server (K_HC_SERVER_NETWORK)"
},
"address": {
"type": "string",
"default": ":8099",
"description": "Listen address for health server (K_HC_SERVER_ADDRESS)"
}
}
},
"diskReservation": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Enable disk space reservation (K_DISK_SPACE_RESERVATION_ENABLED)"
},
"initialSize": {
"type": "string",
"pattern": "^\\d+(MB|GB|TB)$",
"default": "200MB",
"description": "Amount of disk space to reserve (K_DISK_SPACE_RESERVATION_INITIAL_SIZE)"
}
}
},
"config": {
"type": "object",
"properties": {
"apiEndpoint": {
"type": "string",
"default": "grpc.api.kentik.com:443",
"description": "Kentik API gRPC endpoint (maps to K_API_ROOT)"
},
"logLevel": {
"type": "string",
"enum": ["debug", "info", "warn", "error"],
"default": "info",
"description": "Logging verbosity level (K_LOG_LEVEL)"
},
"logFormat": {
"type": "string",
"enum": ["json", "text"],
"default": "json",
"description": "Log format (deprecated: agent infers from internal settings)",
"deprecated": true
},
"buffer": {
"type": "object",
"deprecated": true,
"description": "Deprecated: These fields are not used by the agent",
"properties": {
"maxSize": {
"type": "string",
"default": "1Gi"
},
"retentionHours": {
"type": "integer",
"default": 24
}
}
},
"retry": {
"type": "object",
"deprecated": true,
"description": "Deprecated: These fields are not used by the agent",
"properties": {
"initialDelaySeconds": {
"type": "integer",
"default": 5
},
"maxDelaySeconds": {
"type": "integer",
"default": 300
},
"multiplier": {
"type": "number",
"default": 2.0
}
}
}
}
},
"byok": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enable Bring Your Own Key mode"
},
"existingSecret": {
"type": "string",
"description": "Name of Secret containing pre-generated keypair (required if enabled)"
}
}
}
}
},
"serviceAccount": {
"type": "object",
"properties": {
"create": {
"type": "boolean",
"default": true,
"description": "Create ServiceAccount for agent pods"
},
"annotations": {
"type": "object",
"additionalProperties": {"type": "string"},
"description": "Annotations for ServiceAccount"
},
"name": {
"type": "string",
"description": "ServiceAccount name (generated if empty)"
}
}
},
"rbac": {
"type": "object",
"properties": {
"create": {
"type": "boolean",
"default": false,
"description": "Create RBAC resources (Role, RoleBinding)"
}
}
},
"networkPolicy": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enable NetworkPolicy for pod egress"
},
"egress": {
"type": "array",
"description": "Egress rules for NetworkPolicy"
}
}
},
"podSecurityContext": {
"type": "object",
"properties": {
"runAsNonRoot": {"type": "boolean", "default": true},
"runAsUser": {"type": "integer", "default": 1000},
"fsGroup": {"type": "integer", "default": 1000}
}
},
"securityContext": {
"type": "object",
"properties": {
"allowPrivilegeEscalation": {"type": "boolean", "default": false},
"capabilities": {
"type": "object",
"properties": {
"drop": {
"type": "array",
"items": {"type": "string"},
"default": ["ALL"]
}
}
},
"readOnlyRootFilesystem": {"type": "boolean", "default": false}
}
},
"resources": {
"type": "object",
"properties": {
"requests": {
"type": "object",
"properties": {
"cpu": {"type": "string", "default": "100m"},
"memory": {"type": "string", "default": "128Mi"}
}
},
"limits": {
"type": "object",
"properties": {
"cpu": {"type": "string", "default": "500m"},
"memory": {"type": "string", "default": "512Mi"}
}
}
}
},
"livenessProbe": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enable liveness probe (opt-in)"
},
"initialDelaySeconds": {"type": "integer", "default": 30},
"periodSeconds": {"type": "integer", "default": 10},
"timeoutSeconds": {"type": "integer", "default": 5},
"failureThreshold": {"type": "integer", "default": 3}
}
},
"readinessProbe": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enable readiness probe (auto-enabled if healthCheck.enabled=true)"
},
"initialDelaySeconds": {"type": "integer", "default": 5},
"periodSeconds": {"type": "integer", "default": 10},
"timeoutSeconds": {"type": "integer", "default": 5},
"failureThreshold": {"type": "integer", "default": 3}
}
},
"nodeSelector": {
"type": "object",
"additionalProperties": {"type": "string"},
"description": "Node selector for pod scheduling"
},
"tolerations": {
"type": "array",
"description": "Tolerations for pod scheduling"
},
"affinity": {
"type": "object",
"description": "Affinity rules for pod scheduling"
},
"persistence": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Enable persistent volumes (for StatefulSet)"
},
"storageClass": {
"type": "string",
"description": "Storage class name (empty = cluster default)"
},
"size": {
"type": "string",
"default": "10Gi",
"description": "Volume size for application data"
},
"accessModes": {
"type": "array",
"items": {"type": "string"},
"default": ["ReadWriteOnce"]
},
"keypair": {
"type": "object",
"properties": {
"enabled": {"type": "boolean", "default": true},
"storageClass": {"type": "string"},
"size": {"type": "string", "default": "100Mi"},
"accessModes": {
"type": "array",
"items": {"type": "string"},
"default": ["ReadWriteOnce"]
}
}
}
}
},
"configmap": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enable additional ConfigMap for advanced env var overrides"
},
"data": {
"type": "object",
"additionalProperties": {"type": "string"},
"description": "Additional environment variables (for advanced users)"
}
}
},
"service": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enable Service resource"
},
"type": {
"type": "string",
"enum": ["ClusterIP", "NodePort", "LoadBalancer"],
"default": "ClusterIP"
},
"port": {
"type": "integer",
"default": 8080
}
}
}
}
}