You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You could create a dev overlay inside `apps`, make sure
402
-
to change the `spec.path` inside `clusters/dev/apps.yaml` to `path: ./apps/dev`.
403
+
The command deploys the Flux Operator and creates a `FluxInstance` resource that manages
404
+
the Flux controllers lifecycle and syncs the manifests from the specified GitHub repository path.
405
+
You can also provide a `FluxInstance` manifest file to the command with `flux-operator install -f fluxinstance.yaml`.
403
406
404
-
Push the changes to the main branch:
407
+
> [!TIP]
408
+
> On production systems, the Flux Operator can be installed with Helm, Terraform/OpenTofu or directly from OperatorHub.
409
+
> For more details, please refer to the [Flux Operator documentation](https://fluxcd.control-plane.io/operator/install/).
405
410
406
-
```sh
407
-
git add -A && git commit -m "add dev cluster"&& git push
411
+
To list all the resources managed by the Flux on the cluster, use:
412
+
413
+
```console
414
+
$ flux-operator -n flux-system tree ks flux-system
415
+
Kustomization/flux-system/flux-system
416
+
├── Kustomization/flux-system/apps
417
+
│ ├── Namespace/podinfo
418
+
│ ├── HelmRelease/podinfo/podinfo
419
+
│ │ ├── ConfigMap/podinfo/podinfo-redis
420
+
│ │ ├── Service/podinfo/podinfo-redis
421
+
│ │ ├── Service/podinfo/podinfo
422
+
│ │ ├── Deployment/podinfo/podinfo
423
+
│ │ ├── Deployment/podinfo/podinfo-redis
424
+
│ │ └── Ingress/podinfo/podinfo
425
+
│ └── HelmRepository/podinfo/podinfo
426
+
├── Kustomization/flux-system/infra-configs
427
+
│ └── ClusterIssuer/letsencrypt
428
+
├── Kustomization/flux-system/infra-controllers
429
+
│ ├── Namespace/cert-manager
430
+
│ ├── Namespace/ingress-nginx
431
+
│ ├── HelmRelease/cert-manager/cert-manager
432
+
│ ├── HelmRelease/ingress-nginx/ingress-nginx
433
+
│ ├── HelmRepository/ingress-nginx/ingress-nginx
434
+
│ └── OCIRepository/cert-manager/cert-manager
435
+
└── ArtifactGenerator/flux-system/flux-system
408
436
```
409
437
410
-
Set the kubectl context and path to your dev cluster and bootstrap Flux:
438
+
Using Flux Operator to bootstrap Flux comes with several benefits:
411
439
412
-
```sh
413
-
flux bootstrap github \
414
-
--components-extra=source-watcher \
415
-
--context=dev \
416
-
--owner=${GITHUB_USER} \
417
-
--repository=${GITHUB_REPO} \
418
-
--branch=main \
419
-
--personal \
420
-
--path=clusters/dev
421
-
```
440
+
- The operator does not require write access to the Git repository and works with [GitHub Apps](https://fluxcd.control-plane.io/operator/flux-sync/#sync-from-a-git-repository-using-github-app-auth) and other OIDC providers.
441
+
- Production clusters can be configured to sync their state from [Git tags](https://fluxcd.control-plane.io/operator/flux-kustomize/#cluster-sync-semver-range) instead of the main branch, allowing safe promotion of changes from staging to production.
442
+
- The upgrade of Flux controllers and their CRDs is fully automated (can be customized via the `FluxInstance`[distribution](https://fluxcd.control-plane.io/operator/fluxinstance/#distribution-version) field).
443
+
- The `FluxInstance` API allows configuring multi-tenancy lockdown, network policies, persistent storage, sharding, and vertical scaling of the Flux controllers.
444
+
- The operator allows bootstrapping Flux in a [GitLess mode](https://fluxcd.control-plane.io/operator/flux-sync/#sync-from-a-container-registry), where the cluster state is stored as OCI artifacts in container registries.
445
+
- The operator extends Flux with self-service capabilities via the [ResourceSet](https://fluxcd.control-plane.io/operator/resourcesets/) API which is designed to reduce the complexity of GitOps workflows.
446
+
447
+
To migrate an existing Flux installation to Flux Operator, please refer to the [bootstrap migration guide](https://fluxcd.control-plane.io/operator/flux-bootstrap-migration/).
0 commit comments