azure-k8s-metrics-adapter icon indicating copy to clipboard operation
azure-k8s-metrics-adapter copied to clipboard

Deploying to k8s 1.16.7 fails

Open AlexeyRaga opened this issue 4 years ago • 2 comments

Describe the bug

Deploying to k8s 1.16.7 fails with the following error:

error: unable to recognize "adapter.yaml": no matches for kind "Deployment" in version "apps/v1beta2"

To Reproduce

  • Create a k8s cluster on Azure, select 1.16.7 instead of the default 1.15.x
  • Follow the instructions from Readme to install the metrics adapter

Expected behavior The adapter is installed and is operational

Kubernetes version (kubectl version): 1.16.7

  • [x] Running on AKS

AlexeyRaga avatar May 19 '20 06:05 AlexeyRaga

If you're using the chart you should change the apiVersion for the Deployment resource (charts/templates/deployment.yaml):

# apiVersion: apps/v1beta2
apiVersion: apps/v1

If you are using the file deploy/adapter.yaml you should do the same in the line 281.

Hope this helps

0GiS0 avatar Jun 13 '20 08:06 0GiS0

Thanks very much, this fixed my identical problem. I encountered it running AKS K8S 1.17.11.

eugen-nw avatar Oct 04 '20 20:10 eugen-nw