-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalues.yaml
More file actions
298 lines (266 loc) · 10.5 KB
/
Copy pathvalues.yaml
File metadata and controls
298 lines (266 loc) · 10.5 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
# -- Deployment mode: "combo" runs all components in one process; "distributed" runs
# separate Deployments for indexer, matcher, and notifier.
mode: combo
# -- Override the chart name (used in resource names and labels).
nameOverride: ""
# -- Override the full release name instead of "<release>-<chart>".
fullnameOverride: ""
# ──────────────────────────────────────────────
# Clair image (shared across all modes)
# ──────────────────────────────────────────────
image:
# -- Clair container image repository.
repository: quay.io/projectquay/clair
# -- Image tag. Defaults to the chart's appVersion when empty.
tag: "4.9.0"
# -- Image pull policy.
pullPolicy: IfNotPresent
# -- List of image pull secrets for private registries.
# @default -- `[]`
imagePullSecrets: []
serviceAccount:
# -- Create a ServiceAccount for Clair pods.
create: true
# -- Annotations to add to the ServiceAccount.
annotations: {}
# -- Override the ServiceAccount name. Defaults to the full release name.
name: ""
# -- Annotations added to every Clair pod.
podAnnotations: {}
# -- Labels added to every Clair pod.
podLabels: {}
# -- Pod-level security context applied to all Clair pods.
podSecurityContext:
runAsNonRoot: true
runAsUser: 65534
fsGroup: 65534
# -- Container-level security context applied to all Clair containers.
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop: ["ALL"]
# -- Extra environment variables injected into all Clair containers (combo, notifier, indexer, matcher).
# Useful for feature flags, proxy settings, or any Clair env-based config.
# @default -- `[]`
extraEnv: []
# - name: HTTP_PROXY
# value: "http://proxy.example.com:3128"
# - name: MY_SECRET
# valueFrom:
# secretKeyRef:
# name: my-secret
# key: value
# -- Node selector for all Clair pods.
nodeSelector: {}
# -- Tolerations for all Clair pods.
tolerations: []
# -- Affinity rules for all Clair pods.
affinity: {}
# ──────────────────────────────────────────────
# Clair configuration (applied to all modes)
# ──────────────────────────────────────────────
config:
# -- Clair log level. One of: debug, info, warn, error.
logLevel: info
# -- Address Clair listens on for the HTTP API.
httpListenAddr: "0.0.0.0:6060"
# -- Address Clair listens on for introspection (metrics, health).
introspectionAddr: "0.0.0.0:8089"
indexer:
# -- Seconds between retries when acquiring a scan lock.
scanLockRetry: 10
# -- Number of layers scanned concurrently per manifest.
layerScanConcurrency: 5
# -- Run database migrations on indexer startup.
migrations: true
# -- Disable external network access (air-gapped environments).
airgap: false
matcher:
# -- Maximum number of database connections in the matcher pool.
maxConnPool: 100
# -- Run database migrations on matcher startup.
migrations: true
# -- How often the matcher syncs vulnerability feeds (e.g. "6h", "24h").
period: "6h"
# -- Disable vulnerability feed updaters (useful for air-gapped installs).
disableUpdaters: false
# -- Number of previous update operations to retain for diffing.
updateRetention: 2
notifier:
# -- Run database migrations on notifier startup.
migrations: true
# -- How often the notifier polls for new vulnerability matches.
pollInterval: "6h"
# -- How often the notifier attempts to deliver pending notifications.
deliveryInterval: "1h"
webhook:
# -- Webhook target URL. Leave empty to disable webhook delivery.
target: ""
# -- Callback URL Clair uses to reference notifications in the webhook payload.
callback: ""
# -- Sign webhook payloads with the PSK from config.auth.
signed: false
# amqp: {} # See https://quay.github.io/clair/reference/config.html
# stomp: {} # See https://quay.github.io/clair/reference/config.html
# -- Pre-shared key authentication between Clair components.
# @default -- `{}`
auth: {}
# psk:
# key: "changeme"
# iss: ["indexer", "matcher"]
# ──────────────────────────────────────────────
# Database
# ──────────────────────────────────────────────
database:
# -- Full PostgreSQL DSN. When set, the bundled postgresql is ignored.
# Example: "host=mydb port=5432 dbname=clair user=clair password=s3cr3t sslmode=require"
externalConnString: ""
# -- Database name (used when postgresql.enabled=true).
name: clair
# -- Database user (used when postgresql.enabled=true).
user: clair
# -- Database password. Auto-generated and persisted across upgrades when empty.
password: ""
# ──────────────────────────────────────────────
# Bundled PostgreSQL (used by both modes)
# ──────────────────────────────────────────────
postgresql:
# -- Deploy a bundled PostgreSQL instance. Set to false and configure
# database.externalConnString to use an external database.
enabled: true
image:
repository: postgres
tag: "17-alpine"
pullPolicy: IfNotPresent
persistence:
# -- Enable a PersistentVolumeClaim for PostgreSQL data.
enabled: true
# -- Name of an existing PVC to use. When set, the chart will not create a new PVC
# and will use this claim instead. Requires persistence.enabled=true.
existingClaim: ""
# -- PVC size. Ignored when existingClaim is set.
size: 10Gi
# -- Storage class. Uses the cluster default when empty. Ignored when existingClaim is set.
storageClass: ""
# -- PVC access mode. Ignored when existingClaim is set.
accessMode: ReadWriteOnce
# -- Resource requests and limits for the PostgreSQL container.
resources: {}
service:
# -- PostgreSQL service port.
port: 5432
# -- Pod-level security context for the PostgreSQL pod.
podSecurityContext:
runAsNonRoot: true
runAsUser: 999
fsGroup: 999
# -- Container-level security context for the PostgreSQL container.
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
# ──────────────────────────────────────────────
# Combo mode (mode: combo)
# Single process running indexer + matcher + optional separate notifier.
# ──────────────────────────────────────────────
combo:
# -- Number of Clair combo replicas.
replicaCount: 1
# -- Resource requests and limits for the Clair combo container.
resources: {}
service:
# -- Service type for the Clair API.
type: ClusterIP
# -- HTTP API port exposed by the Service.
port: 6060
# -- Introspection (metrics/health) port exposed by the Service.
introspectionPort: 8089
ingress:
# -- Enable an Ingress for the Clair API.
enabled: false
# -- Ingress class name (e.g. "nginx", "traefik").
className: ""
# -- Ingress annotations.
annotations: {}
# -- Ingress host rules.
hosts:
- host: clair.example.com
paths:
- path: /
pathType: Prefix
# -- TLS configuration for the Ingress.
tls: []
autoscaling:
# -- Enable a HorizontalPodAutoscaler for the Clair combo Deployment.
enabled: false
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 80
pdb:
# -- Enable a PodDisruptionBudget for the Clair combo Deployment.
enabled: false
# -- Minimum number (or percentage) of pods that must be available during disruptions.
minAvailable: 1
# -- Deploy a separate notifier pod (CLAIR_MODE=notifier).
# Requires at least one delivery mechanism configured under config.notifier.webhook,
# config.notifier.amqp, or config.notifier.stomp — otherwise the pod will fail to start.
# When disabled, the notifier logic runs inside the main combo process but self-disables
# if no delivery mechanism is configured.
notifier:
# -- Enable the dedicated notifier Deployment.
enabled: false
# -- Number of notifier replicas.
replicaCount: 1
# -- Resource requests and limits for the notifier container.
resources: {}
service:
# -- Service type for the notifier.
type: ClusterIP
# -- Port exposed by the notifier Service.
port: 6060
# ──────────────────────────────────────────────
# Distributed mode (mode: distributed)
# Separate Deployment per component with path-based Ingress routing.
# Requires a Layer 7 ingress controller.
# ──────────────────────────────────────────────
distributed:
ingress:
# -- Enable the path-based Ingress. Strongly recommended in distributed mode.
enabled: true
# -- Ingress class name (e.g. "nginx", "traefik").
className: ""
# -- Ingress annotations.
annotations: {}
# -- Hostname for all distributed components.
host: clair.example.com
# -- TLS configuration for the Ingress.
tls: []
indexer:
# -- Number of indexer replicas.
replicaCount: 2
# -- Resource requests and limits for the indexer container.
resources: {}
autoscaling:
# -- Enable HPA for the indexer Deployment.
enabled: false
minReplicas: 2
maxReplicas: 10
targetCPUUtilizationPercentage: 80
matcher:
# -- Number of matcher replicas.
replicaCount: 2
# -- Resource requests and limits for the matcher container.
resources: {}
autoscaling:
# -- Enable HPA for the matcher Deployment.
enabled: false
minReplicas: 2
maxReplicas: 10
targetCPUUtilizationPercentage: 80
notifier:
# -- Enable the notifier Deployment in distributed mode.
enabled: true
# -- Number of notifier replicas.
replicaCount: 1
# -- Resource requests and limits for the notifier container.
resources: {}