mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 16:30:55 +01:00
8d238f1bc2
Signed-off-by: Artem Navoiev <tenmozes@gmail.com>
1.3 KiB
1.3 KiB
sort | weight | title | menu | aliases | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
11 | 11 | CRD Validation |
|
|
CRD Validation
Description
Operator supports validation admission webhook docs
It checks resources configuration and returns errors to caller before resource will be created at kubernetes api. This should reduce errors and simplify debugging.
Configuration
Validation hooks at operator side must be enabled with flags:
--webhook.enable
# optional configuration for certDir and tls names.
--webhook.certDir=/tmp/k8s-webhook-server/serving-certs/
--webhook.keyName=tls.key
--webhook.certName=tls.crt
You have to mount correct certificates at give directory.
It can be simplified with cert-manager and kustomize command: kustomize build config/deployments/webhook/
Requirements
- Valid certificate with key must be provided to operator
- Valid CABundle must be added to the
ValidatingWebhookConfiguration