mirror of https://github.com/fluxcd/flux2.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.9 KiB
Markdown
65 lines
1.9 KiB
Markdown
## tk create source helm
|
|
|
|
Create or update a HelmRepository source
|
|
|
|
### Synopsis
|
|
|
|
|
|
The create source helm command generates a HelmRepository resource and waits for it to fetch the index.
|
|
For private Helm repositories, the basic authentication credentials are stored in a Kubernetes secret.
|
|
|
|
```
|
|
tk create source helm [name] [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
# Create a source from a public Helm repository
|
|
tk create source helm podinfo \
|
|
--url=https://stefanprodan.github.io/podinfo \
|
|
--interval=10m
|
|
|
|
# Create a source from a Helm repository using basic authentication
|
|
tk create source helm podinfo \
|
|
--url=https://stefanprodan.github.io/podinfo \
|
|
--username=username \
|
|
--password=password
|
|
|
|
# Create a source from a Helm repository using TLS authentication
|
|
tk create source helm podinfo \
|
|
--url=https://stefanprodan.github.io/podinfo \
|
|
--cert-file=./cert.crt \
|
|
--key-file=./key.crt \
|
|
--ca-file=./ca.crt
|
|
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
--ca-file string TLS authentication CA file path
|
|
--cert-file string TLS authentication cert file path
|
|
-h, --help help for helm
|
|
--key-file string TLS authentication key file path
|
|
-p, --password string basic authentication password
|
|
--url string Helm repository address
|
|
-u, --username string basic authentication username
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--export export in YAML format to stdout
|
|
--interval duration source sync interval (default 1m0s)
|
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
|
--namespace string the namespace scope for this operation (default "gitops-system")
|
|
--timeout duration timeout for this operation (default 5m0s)
|
|
--verbose print generated objects
|
|
```
|
|
|
|
### SEE ALSO
|
|
|
|
* [tk create source](tk_create_source.md) - Create or update sources
|
|
|