mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 16:57:29 +00:00
The image-reflector controller now accepts a secret containing a client certificate and key, and/or a CA certificate; so it's useful to have a command for creating them. `flux create secret helm` is close, but accepts username/password (which would be ignored), and has the wrong name of course. Happily though, much can be shared between the implementations. Signed-off-by: Michael Bridgen <michael@weave.works>
1.3 KiB
1.3 KiB
flux create secret
Create or update Kubernetes secrets
Synopsis
The create source sub-commands generate Kubernetes secrets specific to Flux.
Options
-h, --help help for secret
Options inherited from parent commands
--context string kubernetes context to use
--export export in YAML format to stdout
--interval duration source sync interval (default 1m0s)
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
-n, --namespace string the namespace scope for this operation (default "flux-system")
--timeout duration timeout for this operation (default 5m0s)
--verbose print generated objects
SEE ALSO
- flux create - Create or update sources and resources
- flux create secret git - Create or update a Kubernetes secret for Git authentication
- flux create secret helm - Create or update a Kubernetes secret for Helm repository authentication
- flux create secret tls - Create or update a Kubernetes secret with TLS certificates