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

Deploying to k8s 1.16.7 fails #95

Open
1 task done
AlexeyRaga opened this issue May 19, 2020 · 2 comments
Open
1 task done

Deploying to k8s 1.16.7 fails #95

AlexeyRaga opened this issue May 19, 2020 · 2 comments

Comments

@AlexeyRaga
Copy link

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

  • Running on AKS
@0GiS0
Copy link

0GiS0 commented Jun 13, 2020

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

@eugen-nw
Copy link

eugen-nw commented Oct 4, 2020

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

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

3 participants