← 返回命令列表

Linux command

fluxctl 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List workloads

fluxctl list-workloads

List images for

fluxctl list-images --workload=[namespace:deployment/name]

Release new image

fluxctl release --workload=[namespace:deployment/name] --update-image=[image:tag]

Sync with git

fluxctl sync

Lock workload

fluxctl lock --workload=[namespace:deployment/name]

说明

fluxctl is the CLI for Flux v1, a GitOps tool for Kubernetes. It manages workloads, triggers deployments, and controls automated image updates from container registries. The tool connects to the Flux daemon running in Kubernetes to list resources, release images, and trigger Git synchronization. It enables manual intervention in otherwise automated GitOps workflows. fluxctl provides operational control over Flux-managed clusters.

参数

list-workloads
Show all managed workloads.
list-images _WORKLOAD_
Show available images.
release
Update workload to new image.
sync
Synchronize with Git repository.
lock _WORKLOAD_
Prevent automated updates.
unlock _WORKLOAD_
Allow automated updates.
--help
Display help information.

FAQ

What is the fluxctl command used for?

fluxctl is the CLI for Flux v1, a GitOps tool for Kubernetes. It manages workloads, triggers deployments, and controls automated image updates from container registries. The tool connects to the Flux daemon running in Kubernetes to list resources, release images, and trigger Git synchronization. It enables manual intervention in otherwise automated GitOps workflows. fluxctl provides operational control over Flux-managed clusters.

How do I run a basic fluxctl example?

Run `fluxctl list-workloads` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list-workloads do in fluxctl?

Show all managed workloads.