Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

error: the namespace from the provided object 'kube-system' does not match the namespace 'custom-metrics'. You must pass '--namespace=kube-system' to perform this operation. #98

Open
ragatgen opened this issue Nov 7, 2020 · 1 comment

Comments

@ragatgen
Copy link

ragatgen commented Nov 7, 2020

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Followed the instructions on
https://docs.microsoft.com/en-us/azure/application-gateway/ingress-controller-autoscale-pods

Expected behavior
Deploy the adapter

Kubernetes version (kubectl version):

Kubernetes Version 1.18.8

Logs (kubectl logs <metric adapter pod id>)
no pod created

Additional context
When applying this steps:
kubectl create namespace custom-metrics

use values from service principal created above to create secret

kubectl create secret generic azure-k8s-metrics-adapter -n custom-metrics
--from-literal=azure-tenant-id=
--from-literal=azure-client-id=
--from-literal=azure-client-secret=
kubectl apply -f kubectl apply -f https://raw.githubusercontent.com/Azure/azure-k8s-metrics-adapter/master/deploy/adapter.yaml -n custom-metrics
The following comes out at the end:

error: the namespace from the provided object 'kube-system' does not match the namespace 'custom-metrics'. You must pass '--namespace=kube-system' to perform this operation.

Please let me know if there's anything else to be done to get this working

@jsturtevant
Copy link
Collaborator

Support for newer versions of k8s has not been added or tested (see maintenance note). Please checkout out KEDA which has Azure metric support for latest updates

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants