Saki
Saki

Reputation: 1777

Getting error while running "Harbor" in Kubernetes Cluster set up locally using Ubuntu 16.04 server

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

Answers (2)

Yasen
Yasen

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 supporting Deployment)

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

Arghya Sadhu
Arghya Sadhu

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

Related Questions