-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Sync fails due to (plain) metrics discovery error #2087
Comments
I almost forget, metrics version is v0.3.3. |
It seems like is trying to get data from metrics API 1alpha1 but I'm using 1beta1.. |
I am not a metrics user, but let's try to pinpoint where
|
Hello @2opremio , thanks for the fast response. Here are the logs and outputs you requested: 1- 2- 3- 4- Please let me know if you need something else. |
Adding some more info, I think memcache for flux is asking for metrics API for old kubernetes 1.7 version. (metrics/v1alpha1). But I'm using the metrics API for kubernetes 1.8+ version (metrics.k8s.io/v1beta1)... |
memcache doesn't cache resources/groupversions , just container image metadata. |
To be more precise, there is an in-memory cache for the resource definitions but it gets invalidated every 5 minutes |
Here's the problem (from {
"name": "metrics",
"versions": [
{
"groupVersion": "metrics/v1alpha1",
"version": "v1alpha1"
}
],
"preferredVersion": {
"groupVersion": "metrics/v1alpha1",
"version": "v1alpha1"
}
},
{
"name": "metrics.k8s.io",
"versions": [
{
"groupVersion": "metrics.k8s.io/v1beta1",
"version": "v1beta1"
}
],
"preferredVersion": {
"groupVersion": "metrics.k8s.io/v1beta1",
"version": "v1beta1"
}
} We do ignore errors in |
So, this is another incarnation of #1991 , sigh |
Thanks @2opremio I will look into that on next Monday! |
@2opremio this quick fix will be available on next release? |
Yep! |
Awesome! Thanks! |
Hi I'm getting started with flux and following the guide on the repository. I'm running K8s cluster with AWS EKS v1.12 and worker nodes in EC2 instances.
After deploy flux to my cluster I'm getting this errors:
Then the state of metrics that I installed following the AWS doc metrics
Doing a
flux sync
the output is:I made a change to my cloned repository to master but never get it synchronized on the cluster.
Flux version is 1.12.3
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: