Error: could not find skywalking: stat skywalking: no such file or directory

心已入冬 提交于 2020-07-10 10:29:11

问题


I am follow this docs to install skywalking using helm 3.2.1 :

helm repo add elastic https://helm.elastic.co
helm dep up skywalking

but when I execute the second command:

[miaoyou@MeowK8SMaster1 linux-amd64]$ ./helm dep up skywalking
Error: could not find skywalking: stat skywalking: no such file or directory

and I create skywalking directory:

[miaoyou@MeowK8SMaster1 linux-amd64]$ mkdir skywalking
[miaoyou@MeowK8SMaster1 linux-amd64]$ ./helm dep up skywalking
Error: validation: chart.metadata is required

so what should I do to make it work? This is I am trying follow:

[miaoyou@MeowK8SMaster1 chart]$ helm dep up skywalking
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "incubator" chart repository
...Successfully got an update from the "riskfocus" chart repository
...Successfully got an update from the "traefik" chart repository
...Successfully got an update from the "elastic" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈Happy Helming!⎈
Saving 1 charts
Downloading elasticsearch from repo https://helm.elastic.co/
Deleting outdated charts
[miaoyou@MeowK8SMaster1 chart]$ helm install apm-skywalking skywalking -n monitoring
Error: rendered manifests contain a resource that already exists. Unable to continue with install: PodDisruptionBudget "elasticsearch-master-pdb" in namespace "monitoring" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-name" must equal "apm-skywalking": current value is "elasticsearch"
[miaoyou@MeowK8SMaster1 chart]$ helm install skywalking --generate-name -n monitoring
Error: rendered manifests contain a resource that already exists. Unable to continue with install: PodDisruptionBudget "elasticsearch-master-pdb" in namespace "monitoring" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-name" must equal "skywalking-1591790123": current value is "elasticsearch"
[miaoyou@MeowK8SMaster1 chart]$ helm install elasticsearch skywalking -n monitoring
Error: cannot re-use a name that is still in use

回答1:


  1. Clone the repository to your machine,
$ git clone git@github.com:apache/skywalking-kubernetes.git
  1. Go to Chart directory,
$ cd skywalking-kubernetes/chart
  1. Now perform the following commands (from chart dir),
$ helm repo add elastic https://helm.elastic.co

$ helm dep up skywalking

$ helm install <release_name> skywalking -n <namespace> 


来源:https://stackoverflow.com/questions/62261285/error-could-not-find-skywalking-stat-skywalking-no-such-file-or-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!