-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add app-onboarding and restructure docs
Signed-off-by: Johannes Kleinlercher <[email protected]>
- Loading branch information
1 parent
1548bea
commit b14ead0
Showing
4 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Onboarding applications | ||
|
||
# New Apps via Scaffolder Templates and ArgoCD AppSets | ||
|
||
When your team creates applications with some specific conventions which applies to the platform ApplicationSets, then your app is automatically deployed via a platform ApplicationSet and you don't need to deal with any ArgoCD application definitions. | ||
|
||
For Showcase-Purposes there is an AppSet for "Multi-Stage Apps with Kargo-Pipeline" available which searches for repos in your organization which | ||
|
||
* start with your teams name, e.g. `team-1-my-app` | ||
* have a `app-stages.yaml` in the root folder of your repo | ||
|
||
With the scaffolder [template for multi-stage app with kargo pipeline](https://backstage.demo.kubrix.cloud/create/templates/default/multi-stage-app-with-kargo-pipeline) you can automatically create such a repo with the predefined example application 'podtato-head'. | ||
|
||
pic: app-onboarding-1.png | ||
|
||
Just specifiy your application name and a description and be sure that the "FQDN" points to `demo.kubrix.cloud`. Then click 'Next'. | ||
|
||
pic: app-onboarding-2.png | ||
|
||
The Git-Repo for your applications Kubernetes resources is automatically set, just click 'Next'. | ||
|
||
pic: app-onboarding-3.png | ||
|
||
On the summary page review your data and click on 'Create' | ||
|
||
pic: app-onboarding-4.png | ||
|
||
Backstage now creates a new Git-Repo with the needed Helm-Chart in it and registers this new app in backstage. With 'Repository' you can open the Git-Repository and with 'Open in catalog' you will open the corresponding application component in backstage. | ||
|
||
In the backstage component overview of your application you can see the ArgoCD sync and health status. It may take a few seconds until your app is recognized bei the ArgoCD ApplicationSet and synced in ArgoCD. You can click on the application name to open the corresponding argocd dashboard. | ||
|
||
pic: app-onboarding-6.png | ||
|
||
On the bottom of the component overview page you can see that this application has three subcomponents, one per stage. | ||
You can click on each subcomponent and get to the overview page of each subcomponent. | ||
|
||
pic: app-onboarding-7.png | ||
|
||
Each component page has different tabs for different informations. | ||
|
||
pic: app-onboarding-8.png | ||
|
||
* Overview: some key informations for your app from different tools and links to e.g. interesting Grafana Dashboards | ||
* Kargo: GitOps-Promotion tool to bring your changes from dev to prod (Password in demo env: 'admin') | ||
|
||
pic: app-onboarding-10.png | ||
|
||
* Kubernetes: shows your app specific resources and state in your Kubernetes cluster | ||
* Docs: shows your application documentation | ||
* Pull Requests: Pull Requests of your application gitops-Repo | ||
* Github issues: Issues of your application gitops-Repo | ||
* Github Insights: overview of your application gitops-Repo | ||
* Grafana Dashboard: overview of your application resource consumption and health state (User: admin, Password: prom-operator) | ||
|
||
pic: app-onboarding-12.png | ||
|
||
And at the bottom of your components overview page, you see the ArgoCD status and a link to open your application. | ||
|
||
pic: app-onboarding-9.png | ||
|
||
pic: app-onboarding-11.png | ||
|
||
|
||
# New apps via Team-App-Of-Apps Repo | ||
|
||
Experienced teams can create their own ArgoCD application definition or AppSets in their Team-App-Of-Apps repo created in the "Onboarding Team" step. | ||
This application definition can point to any GitOps-Repo as long as | ||
|
||
* ArgoCD is able to read this repo | ||
* it meets the 'sourceRepos' rules in the [team-onboarding values](https://github.com/kubriX-demo/kubriX-demo/blob/main/platform-apps/charts/team-onboarding/values-demo-metalstack.yaml) | ||
|
||
Please be aware that depending on the ArgoCD project definition it is very likely that your team can only deploy namespace-scoped resources in namespaces beginning with your team name (e.g. 'team-1-app-1'). | ||
|
||
|
||
# Additional infos | ||
|
||
Some background information can also be found in the 'Additional infos' chapter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters