Reputation: 1777
While running Harbor, a caching service for K8s, I'm getting the following error:
error: unable to recognize "harbor.yaml": no matches for kind "Deployment" in version "v1.10.1"
Is there documentation for a working version of Harbor yet?
Upvotes: 0
Views: 266
Reputation: 4504
There is known issue due to changes in k8s
API.
See this answer
This means that only apiVersion with
apps
is correct for Deployments (extensions
is not supportingDeployment
)
And there is fix in the harbor helm chart Update your configs and check configs.
There is a workaround to fix it manually: replace extensions/v1beta1
to apps/v1
sed -i 's#extensions/v1beta1#apps/v1# *.yaml
Upvotes: 1
Reputation: 44657
An yaml for deployment should have apiVersion: apps/v1
An easy way to install harbor is using helm from helm hub
Upvotes: 0