The apiservices "v1beta1.metrics.k8s.io" is invalid: metadata.resourceVersion
search cancel

The apiservices "v1beta1.metrics.k8s.io" is invalid: metadata.resourceVersion

book

Article ID: 298702

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Integrated Edition

Issue/Introduction

During a TKGi upgrade the process failed in the apply-addons task:
Stderr   The apiservices "v1beta1.metrics.k8s.io" is invalid: metadata.resourceVersion: Invalid value: 0x0: must be specified for an update

You can see further details in the apply-addons VM:
bosh -d service-instance_xxxx run-errand apply-addons --keep-alive

Get the output of kubectl get apiservice v1beta1.metrics.k8s.io -o yaml

The issue is due to resourceVersion in kubectl.kubernetes.io/last-applied-configuration section from the apiservice v1beta1.metrics.k8s.io

Environment

Product Version: 1.13

Resolution

Remove kubectl.kubernetes.io/last-applied-configuration and its content.

Re-run the TKGi cluster upgrade.