github.com/cloudposse/helm@v2.2.3+incompatible/docs/helm/helm_dependency.md (about) 1 ## helm dependency 2 3 manage a chart's dependencies 4 5 ### Synopsis 6 7 8 9 Manage the dependencies of a chart. 10 11 Helm charts store their dependencies in 'charts/'. For chart developers, it is 12 often easier to manage a single dependency file ('requirements.yaml') 13 which declares all dependencies. 14 15 The dependency commands operate on that file, making it easy to synchronize 16 between the desired dependencies and the actual dependencies stored in the 17 'charts/' directory. 18 19 A 'requirements.yaml' file is a YAML file in which developers can declare chart 20 dependencies, along with the location of the chart and the desired version. 21 For example, this requirements file declares two dependencies: 22 23 # requirements.yaml 24 dependencies: 25 - name: nginx 26 version: "1.2.3" 27 repository: "https://example.com/charts" 28 - name: memcached 29 version: "3.2.1" 30 repository: "https://another.example.com/charts" 31 32 The 'name' should be the name of a chart, where that name must match the name 33 in that chart's 'Chart.yaml' file. 34 35 The 'version' field should contain a semantic version or version range. 36 37 The 'repository' URL should point to a Chart Repository. Helm expects that by 38 appending '/index.yaml' to the URL, it should be able to retrieve the chart 39 repository's index. Note: 'repository' cannot be a repository alias. It must be 40 a URL. 41 42 Starting from 2.2.0, repository can be defined as the path to the directory of 43 the dependency charts stored locally. The path should start with a prefix of "file://". 44 For example, 45 # requirements.yaml 46 dependencies: 47 - name: nginx 48 version: "1.2.3" 49 repository: "file://../dependency_chart/nginx" 50 If the dependency chart is retrieved locally, it is not required to have the repository 51 added to helm by "helm add repo". Version matching is also supported for this case. 52 53 ### Options inherited from parent commands 54 55 ``` 56 --debug enable verbose output 57 --home string location of your Helm config. Overrides $HELM_HOME (default "~/.helm") 58 --host string address of tiller. Overrides $HELM_HOST 59 --kube-context string name of the kubeconfig context to use 60 --tiller-namespace string namespace of tiller (default "kube-system") 61 ``` 62 63 ### SEE ALSO 64 * [helm](helm.md) - The Helm package manager for Kubernetes. 65 * [helm dependency build](helm_dependency_build.md) - rebuild the charts/ directory based on the requirements.lock file 66 * [helm dependency list](helm_dependency_list.md) - list the dependencies for the given chart 67 * [helm dependency update](helm_dependency_update.md) - update charts/ based on the contents of requirements.yaml 68 69 ###### Auto generated by spf13/cobra on 15-Jan-2017