pacoxu / kubernetes

Production-Grade Container Scheduling and Management
https://kubernetes.io
Apache License 2.0
2 stars 4 forks source link

strict decoding error: unknown field "logging.sanitization" #1774

Closed pacoxu closed 1 year ago

pacoxu commented 1 year ago

What happened?

11月 10 16:05:11 daocloud kubelet[3674]: I1110 16:05:11.459491 3674 codec.go:117] "Using lenient decoding as strict decoding failed" err="strict decoding error: unknown field \"logging.sanitization\""

pacoxu commented 1 year ago

https://v1-23.docs.kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/#LoggingConfiguration Before v1.23,

sanitization [Required]bool [Experimental] When enabled prevents logging of fields tagged as sensitive (passwords, keys, tokens). Runtime log sanitization may introduce significant computation overhead and therefore should not be enabled in production.`)

After v1.24, sanitization is removed.