brew install helm
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/helm-3.0.0.mojave.bottle.tar.gz
######################################################################## 100.0%==> Pouring helm-3.0.0.mojave.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/helm/3.0.0: 7 files, 40.6MB
localhost:~ liuhuajian$ helm
The Kubernetes package manager
Common actions for Helm:
- helm search: search for charts
- helm pull: download a chart to your local directory to view
- helm install: upload the chart to Kubernetes
- helm list: list releases of charts
Environment variables:
+------------------+-----------------------------------------------------------------------------+
| Name | Description |
+------------------+-----------------------------------------------------------------------------+
|$XDG_CACHE_HOME|set an alternative location for storing cached files. ||$XDG_CONFIG_HOME|set an alternative location for storing Helm configuration. ||$XDG_DATA_HOME|set an alternative location for storing Helm data. ||$HELM_DRIVER|set the backend storage driver. Values are: configmap, secret, memory ||$HELM_NO_PLUGINS| disable plugins. Set HELM_NO_PLUGINS=1 to disable plugins. ||$KUBECONFIG|set an alternative Kubernetes configuration file(default "~/.kube/config")|
+------------------+-----------------------------------------------------------------------------+
Helm stores configuration based on the XDG base directory specification, so
- cached files are stored in$XDG_CACHE_HOME/helm
- configuration is stored in$XDG_CONFIG_HOME/helm
- data is stored in$XDG_DATA_HOME/helm
By default, the default directories depend on the Operating System. The defaults are listed below:
+------------------+---------------------------+--------------------------------+-------------------------+
| Operating System | Cache Path | Configuration Path | Data Path |
+------------------+---------------------------+--------------------------------+-------------------------+
| Linux |$HOME/.cache/helm |$HOME/.config/helm |$HOME/.local/share/helm || macOS |$HOME/Library/Caches/helm |$HOME/Library/Preferences/helm |$HOME/Library/helm || Windows | %TEMP%\helm | %APPDATA%\helm | %APPDATA%\helm |
+------------------+---------------------------+--------------------------------+-------------------------+
Usage:
helm [command]
Available Commands:
completion Generate autocompletions script for the specified shell (bash or zsh)
create create a new chart with the given name
dependency manage a chart's dependencies
env Helm client environment information
get download extended information of a named release
help Help about any commandhistory fetch release historyinstallinstall a chart
lint examines a chart for possible issues
list list releases
package package a chart directory into a chart archive
plugin install, list, or uninstall Helm plugins
pull download a chart from a repository and (optionally) unpack it in local directory
repo add, list, remove, update, and index chart repositories
rollback roll back a release to a previous revision
search search for a keyword in charts
show show information of a chart
status displays the status of the named release
template locally render templates
test run tests for a release
uninstall uninstall a release
upgrade upgrade a release
verify verify that a chart at the given path has been signed and is valid
version print the client version information
Flags:
--add-dir-header If true, adds the file directory to the header
--alsologtostderr log to standard error as well as files
--debug enable verbose output
-h, --help helpfor helm
--kube-context string name of the kubeconfig context to use
--kubeconfig string path to the kubeconfig file
--log-backtrace-at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log-dir string If non-empty, write log files in this directory
--log-file string If non-empty, use this log file
--log-file-max-size uint Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
--logtostderr log to standard error instead of files (default true)
-n, --namespace string namespace scope for this request
--registry-config string path to the registry config file(default "/Users/liuhuajian/Library/Preferences/helm/registry.json")
--repository-cache string path to the file containing cached repository indexes (default "/Users/liuhuajian/Library/Caches/helm/repository")
--repository-config string path to the file containing repository names and URLs (default "/Users/liuhuajian/Library/Preferences/helm/repositories.yaml")
--skip-headers If true, avoid header prefixes in the log messages
--skip-log-headers If true, avoid headers when opening log files
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
-v, --v Level number for the log level verbosity
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
Use "helm [command] --help"formore information about a command.
brew install kubernetes-cli
Last login: Sun Mar 15 09:19:31 on ttys001
~ $ brew install kubernetes-cli
==> Downloading https://homebrew.bintray.com/bottles/kubernetes-cli-1.17.4.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/b4/b4af6852171b1f8906c3d8ad710707ffe9dfd045ea1d8138206392d3ba8b52fd?__gda__=exp=1584235938~hmac=7f8782ea6cce2fcb3ce92255b5fc2
######################################################################## 100.0%==> Pouring kubernetes-cli-1.17.4.mojave.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/kubectl
Target /usr/local/bin/kubectl
already exists. You may want to remove it:
rm'/usr/local/bin/kubectl'
To force the link and overwrite all conflicting files:
brew link --overwrite kubernetes-cli
To list all files that would be deleted:
brew link --overwrite --dry-run kubernetes-cli
Possible conflicting files are:
/usr/local/bin/kubectl -> /Applications/Docker.app/Contents/Resources/bin/kubectl
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/kubernetes-cli/1.17.4: 234 files, 48.5MB
~ $