GZIP encoding broken in 2.8.0+ with Prometheus #2036
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened: We upgraded kube-state-metrics from 2.7.0 to 2.8.0. Afterwards Prometheus couldn't scrape it with the error being
gzip: invalid checksum
. Sounds similar to #1371.What you expected to happen: kube-state-metrics should continue to be scraped as usual.
How to reproduce it (as minimally and precisely as possible):
--enable-gzip-encoding
Anything else we need to know?: Weirdly it works fine if I request the endpoint via curl & gunzip like
Maybe the changed headers in #1974 are causing some complications?
Environment:
kubectl version
): 1.25.8The text was updated successfully, but these errors were encountered: