Use kubectl-convert to Fix Deprecated APIs in a Kubernetes Manifest
Scenario
The development team has provided a manifest at /home/laborant/ancient-tiger/app.yaml that was written for an older version of Kubernetes. Applying it as-is will fail on any modern Kubernetes cluster.
Task
Inspect the manifest at :
/home/laborant/ancient-tiger/app.yaml
Use the kubectl-convert plugin to convert them to supported API versions and save the fixed manifest back to the same location with the same filename.
Once fixed, deploy the updated manifest into the viper namespace and verify the Pods are running.
Do not manually edit the manifest. Use kubectl-convert to ensure all required fields are updated correctly.
Hint
To install the kubectl-convert plugin, follow the official Kubernetes documentation:
Install kubectl-convert plugin