azure-k8s-metrics-adapter
azure-k8s-metrics-adapter copied to clipboard
Deploying to k8s 1.16.7 fails
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 default1.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
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
Thanks very much, this fixed my identical problem. I encountered it running AKS K8S 1.17.11.