Skip to content
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

[Question] How to remove AKS's metrics-server #3631

Closed
thiDucTran opened this issue Apr 29, 2023 · 2 comments
Closed

[Question] How to remove AKS's metrics-server #3631

thiDucTran opened this issue Apr 29, 2023 · 2 comments
Labels

Comments

@thiDucTran
Copy link

thiDucTran commented Apr 29, 2023

Describe scenario
The kube-prometheus stack includes a resource metrics API server, so the metrics-server addon is not necessary. - as stated from https://github.com/prometheus-operator/kube-prometheus

We do see there is a conflict of resource

apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
  labels:
    addonmanager.kubernetes.io/mode: Reconcile
    kubernetes.io/cluster-service: "true"
  name: v1beta1.metrics.k8s.io
spec:
  group: metrics.k8s.io
  groupPriorityMinimum: 100
  insecureSkipTLSVerify: true
  service:
    name: metrics-server
    namespace: kube-system
    port: 443
  version: v1beta1
  versionPriority: 100
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
  labels:
    app.kubernetes.io/component: metrics-adapter
    app.kubernetes.io/name: prometheus-adapter
    app.kubernetes.io/part-of: kube-prometheus
    app.kubernetes.io/version: 0.10.0
  name: v1beta1.metrics.k8s.io
spec:
  group: metrics.k8s.io
  groupPriorityMinimum: 100
  insecureSkipTLSVerify: true
  service:
    name: prometheus-adapter
    namespace: monitoring
  version: v1beta1
  versionPriority: 100

Question

  • How do we remove AKS's metrics-server? We removed the resources related to AKS's metrics-server but they keep getting re-created..I am not sure how....we tried checking from az aks addon list
  • Bonus, if we cannot remove AKS's metrics-server.. how can kube-prometheus's prometheus-adapter work with AKS? There is https://github.com/Azure/AKS/blob/master/examples/kube-prometheus/README.md but I think it is quite outdated
@rouke-broersma
Copy link

Just disable prometheus-adapter and use metrics-server instead. They serve the same purpose, since AKS already provides metrics-server by default, don't use prometheus adapter.

@thiDucTran
Copy link
Author

see #3631 (comment)

@ghost ghost locked as resolved and limited conversation to collaborators Jun 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants