-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add usecase guide for Centralized FluxCD deployment #203
Add usecase guide for Centralized FluxCD deployment #203
Conversation
✅ Deploy Preview for nephio ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liamfallon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -14,6 +14,7 @@ ignorePatterns: | |||
- pattern: "https://\\*kpt\\*\\.dev/" | |||
- pattern: "https://my-gitlab\\.com/joe\\.bloggs/blueprints\\.git" | |||
- pattern: "http://172\\.18\\.0\\.200:3000/nephio/" | |||
- pattern: "https://www\\.gnu\\.org/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the problem with gnu.org?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Started timing out recently for some reason. Link is fine but linkinspector was failing with false negative.
https://github.com/nephio-project/docs/actions/workflows/check-links-md.yml
|
||
## FluxCD Controllers | ||
|
||
As an alternative Git-ops tool running on the Nephio mgmt cluster, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an alternative Git-ops tool running on the Nephio mgmt cluster, | |
As an alternative Git-ops tool running on the Nephio management cluster, |
kpt live apply fluxcd --reconcile-timeout=15m --output=table | ||
``` | ||
|
||
The controllers are deployed to the `flux-system` namespace by default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The controllers are deployed to the `flux-system` namespace by default. | |
The controllers are deployed to the *flux-system* namespace by default. |
{{% /alert %}} | ||
|
||
First, verify that the [catalog blueprint repositories](https://github.com/nephio-project/catalog.git) are registered | ||
and `Ready`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and `Ready`: | |
and *Ready*: |
oai-core-packages git Package false True https://github.com/OPENAIRINTERFACE/oai-packages.git | ||
``` | ||
|
||
Once `Ready`, we can utilize blueprint packages from these upstream repositories. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once `Ready`, we can utilize blueprint packages from these upstream repositories. | |
Once *Ready*, we can utilize blueprint packages from these upstream repositories. |
{{% alert title="Note" color="primary" %}} | ||
|
||
Due to the extensive use of `local-config` in the current[Nephio Workload packages](https://github.com/nephio-project/catalog/tree/main/workloads), | ||
plus the target `spec.path` of **root** defined in the Flux Kustomization CR used, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plus the target `spec.path` of **root** defined in the Flux Kustomization CR used, | |
plus the target *spec.path* of **root** defined in the Flux Kustomization CR used, |
|
||
Due to the extensive use of `local-config` in the current[Nephio Workload packages](https://github.com/nephio-project/catalog/tree/main/workloads), | ||
plus the target `spec.path` of **root** defined in the Flux Kustomization CR used, | ||
we require a workaround to generate a `kustomization.yaml` at the root of each kpt pkg deployed to the same downstream Repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we require a workaround to generate a `kustomization.yaml` at the root of each kpt pkg deployed to the same downstream Repository. | |
we require a workaround to generate a *kustomization.yaml* at the root of each kpt pkg deployed to the same downstream Repository. |
Due to the extensive use of `local-config` in the current[Nephio Workload packages](https://github.com/nephio-project/catalog/tree/main/workloads), | ||
plus the target `spec.path` of **root** defined in the Flux Kustomization CR used, | ||
we require a workaround to generate a `kustomization.yaml` at the root of each kpt pkg deployed to the same downstream Repository. | ||
In the example above, this is done via a `PackageVariant.spec.pipeline.mutators` [kpt function](https://github.com/nephio-project/nephio/blob/main/krm-functions/gen-kustomize-res/README.md), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the example above, this is done via a `PackageVariant.spec.pipeline.mutators` [kpt function](https://github.com/nephio-project/nephio/blob/main/krm-functions/gen-kustomize-res/README.md), | |
In the example above, this is done via a *PackageVariant.spec.pipeline.mutators* [kpt function](https://github.com/nephio-project/nephio/blob/main/krm-functions/gen-kustomize-res/README.md), |
|
||
{{% /alert %}} | ||
|
||
Once the Porch and Nephio controllers have completed their tasks, the mutated `spec.upstream.package` resources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the Porch and Nephio controllers have completed their tasks, the mutated `spec.upstream.package` resources | |
Once the Porch and Nephio controllers have completed their tasks, the mutated *spec.upstream.package* resources |
{{% /alert %}} | ||
|
||
Once the Porch and Nephio controllers have completed their tasks, the mutated `spec.upstream.package` resources | ||
are pushed to the `spec.downstream.repo` git repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are pushed to the `spec.downstream.repo` git repository. | |
are pushed to the *spec.downstream.repo* git repository. |
@efiacor can we address the comments of @CsatariGergely and raise a new PR if needed? |
All comments addressed in #207 |
New guides for deploying and using the FluxCD controllers Also, refactored the user guides section to separate the logic into: - Usecases - Controllers & Operators - Other...
New guides for deploying and using the FluxCD controllers
Also, refactored the user guides section to separate the logic into: