mirror of
				https://github.com/fluxcd/flux2.git
				synced 2025-11-01 01:25:53 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			65 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## gotk 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.
 | |
| 
 | |
| ```
 | |
| gotk create source helm [name] [flags]
 | |
| ```
 | |
| 
 | |
| ### Examples
 | |
| 
 | |
| ```
 | |
|   # Create a source from a public Helm repository
 | |
|   gotk create source helm podinfo \
 | |
|     --url=https://stefanprodan.github.io/podinfo \
 | |
|     --interval=10m
 | |
| 
 | |
|   # Create a source from a Helm repository using basic authentication
 | |
|   gotk create source helm podinfo \
 | |
|     --url=https://stefanprodan.github.io/podinfo \
 | |
|     --username=username \
 | |
|     --password=password
 | |
| 
 | |
|   # Create a source from a Helm repository using TLS authentication
 | |
|   gotk 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
 | |
| 
 | |
| * [gotk create source](gotk_create_source.md)	 - Create or update sources
 | |
| 
 | 
