Member-only story
K8s Troubleshooting — Invalid or Unsupported Manifest Version
Note, full K8s troubleshooting mind map is available at: “K8s Troubleshooting MindMap”
What is Invalid or Unsupported Manifest Version Error?
In K8s, this K8s error typically arises when trying to apply a K8s manifest (YAML/JSON file) that contains a resource with an API version that the current K8s cluster does not recognize or support. This can happen for a variety of reasons, such as:
- Using a newer manifest with an older Kubernetes cluster that doesn’t recognize the newer API version.
- Using a deprecated API version that is no longer supported by the Kubernetes cluster.
For example, imagine you are trying to deploy a Deployment resource. Deployments were introduced in the extensions/v1beta1
API group, then moved to apps/v1beta2
, and later to apps/v1
. If you have a newer K8s cluster but use a manifest specifying the older extensions/v1beta1
for Deployments, you might run into issues.
The deploy_old.yaml
may look like:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: my-deployment
spec:
replicas: 3
template:
metadata:
labels:
app: my-app…