Adds multi-gitrepo example

Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>
This commit is contained in:
Xavi Garcia
2024-04-05 09:45:14 +02:00
parent 3f51219e82
commit d3302d3c4b
18 changed files with 268 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# Multi-GitRepo example
This example will deploy the [Kubernetes sample guestbook](https://github.com/kubernetes/examples/tree/master/guestbook/) application using 2 different `GitRepo CRs`, splitting the frontend and the backend as different Helm charts.
The initial `GitRepo` will point to a folder containing 2 `GitRepo` resources that will be deployed in cascade.
The app will be deployed into the `fleet-helm-example` namespace.
```yaml
kind: GitRepo
apiVersion: fleet.cattle.io/v1alpha1
metadata:
name: multi-gitrepo
namespace: fleet-local
spec:
repo: https://github.com/rancher/fleet-examples
paths:
- single-cluster/multi-gitrepos/gitrepos
```