-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HPA autoscaling/v2beta2 Deprecated Warning #23612
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
The collector tries to discover and use any resources available in the cluster. This warning is nothing to worry about and will disappear after 1.23 |
I can confirm version 0.82 of the collector generates errors on OpenShift. |
Same behaviour in GKE for version Screenshot: /cc @dmitryax |
Sorry, I meant the warning will disappear in 1.26 when the deprecated resources are discontinued. The warning is raised in the following course of actions:
If we exclude watching for deprecated resources, collector can stop recoding some metrics after k8s cluster upgrade to a version at that deprecates some resources but user has not updated them yet. I don't think we should do it by default. Maybe there is an option to suppress the warnings. I'm not aware of any. I'll put a label "help wanted" in case if anyone can try to find a way. If there is no way to suppress the warnings, we can add an optional configuration to not watch for deprecated resources e.g. |
…es (#26516) **Description:** Remove support for deprecated Kubernetes API resources: - `batch/v1beta1` - `autoscaling/v2beta2` This also resolves the issue with double reporting metrics for hpa and cronjob in certain k8s versions. **Link to tracking Issue(s):** #23612 #26551 **Testing:** From source, built the custom image [coolboi567/otelcontribcol:0.83.1](https://hub.docker.com/layers/coolboi567/otelcontribcol/0.83.1/images/sha256-fe111e1dff87a26eb64217a8505b84679263c8d7b3ffa16656bba1c1865052d5?context=explore) and tested in kubernetes cluster `v1.25` as well as `v1.27`. In K8s `v1.25`, we no longer see the warnings in the logs about usage of deprecated APIs. **Documentation:** N/A --------- Signed-off-by: Prashant Shahi <me@prashantshahi.dev> Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>
Component(s)
receiver/k8scluster
What happened?
Description
Repeatedly getting HPA autoscaling/v2beta2 Deprecated Warning in AKS
Steps to Reproduce
Deploy Otel Collector version 0.76.0 in AKS
Expected Result
Ignore autoscaling/v2beta2 warning
Actual Result
Deprecated Warning
Collector version
v0.76.0
Environment information
Environment
Node Info:
architecture : amd64
bootID : xxx
containerRuntimeVersion : containerd://1.7.1+azure-1
kernelVersion : 5.15.0-1038-azure
kubeProxyVersion : v1.25.6
kubeletVersion : v1.25.6
machineID : xxx
operatingSystem : linux
osImage : Ubuntu 22.04.2 LTS
systemUUID : xxx
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: