My Amazon EKS is using Kuberentes 1.30:
➜ kubectl version
Client Version: v1.30.0
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.0-eks-036c24b
However, when I deploy kube-prometheus-stack by Argo CD, I got error:
➜ argocd app create horizon-monitoring
--file=manifests/horizon-monitoring.yaml FATA[0001] rpc error: code = InvalidArgument desc = application spec is invalid: InvalidSpecError: Unable to generate manifests in : rpc error: code = Unknown desc = `helm template . --name-template kube-prometheus-stack --namespace production-horizon-monitoring --api-versions v1 --api-versions apiregistration.k8s.io/v1 --api-versions apps/v1 --api-versions events.k8s.io/v1 --api-versions authentication.k8s.io/v1
--api-versions authorization.k8s.io/v1 --api-versions autoscaling/v2 --api-versions autoscaling/v1 --api-versions batch/v1 --api-versions certificates.k8s.io/v1 --api-versions networking.k8s.io/v1
--api-versions policy/v1 --api-versions rbac.authorization.k8s.io/v1 --api-versions storage.k8s.io/v1 --api-versions admissionregistration.k8s.io/v1 --api-versions apiextensions.k8s.io/v1
--api-versions scheduling.k8s.io/v1 --api-versions coordination.k8s.io/v1 --api-versions node.k8s.io/v1 --api-versions discovery.k8s.io/v1 --api-versions flowcontrol.apiserver.k8s.io/v1
--api-versions flowcontrol.apiserver.k8s.io/v1beta3 --api-versions argoproj.io/v1alpha1 --api-versions bitnami.com/v1alpha1
--api-versions crd.k8s.amazonaws.com/v1alpha1 --api-versions networking.k8s.aws/v1alpha1 --api-versions vpcresources.k8s.aws/v1beta1 --api-versions vpcresources.k8s.aws/v1alpha1 --include-crds` failed exit status 1: Error: chart requires kubeVersion: >=1.19.0-0 which is incompatible with Kubernetes v1.16.0
Use --debug flag to render out invalid YAML
which says I am on Kubernetes v1.16.0 while I am on Kubernetes v1.30.0 actually.
My my-monitoring.yaml looks like:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: my-monitoring
namespace: production-my-argo-cd
labels:
app.kubernetes.io/name: my-monitoring
spec:
project: default
source:
chart: kube-prometheus-stack
repoURL: https://prometheus-community.github.io/helm-charts
targetRevision: 60.1.0
helm:
releaseName: kube-prometheus-stack
destination:
namespace: production-my-monitoring
server: https://kubernetes.default.svc
I didn't find any useful info at https://github.com/prometheus-community/helm-charts/issues
Any idea how to solve this error?