Update examples

This commit is contained in:
Darren Shepherd
2020-08-31 23:29:55 -07:00
parent 56bca25f64
commit 3614aa139d
17 changed files with 181 additions and 5 deletions

22
helm-external/README.md Normal file
View File

@@ -0,0 +1,22 @@
# Helm External Example
This example will deploy the [Kubernetes sample guestbook](https://github.com/kubernetes/examples/tree/master/guestbook/) application as
packaged as a Helm chart downloaded from a third party source.
The app will be deployed into the `fleet-helm-external-example` namespace.
The application will be customized as follows per environment:
* Dev clusters: Only the redis leader is deployed and not the followers.
* Test clusters: Scale the front deployment to 3
* Prod clusters: Scale the front deployment to 3 and set the service type to LoadBalancer
```yaml
kind: GitRepo
apiVersion: fleet.cattle.io/v1alpha1
metadata:
name: helm-external
namespace: fleet-local
spec:
repo: https://github.com/rancher/fleet-examples/
bundleDirs: helm-external
```

24
helm-external/fleet.yaml Normal file
View File

@@ -0,0 +1,24 @@
namespace: fleet-helm-external-example
chart: https://github.com/rancher/fleet-examples/releases/download/example/guestbook-0.0.0.tgz
targets:
- name: dev
values:
replication: false
clusterSelector:
matchLabels:
env: dev
- name: test
values:
replicas: 3
clusterSelector:
matchLabels:
env: test
- name: prod
values:
serviceType: LoadBalancer
replicas: 3
clusterSelector:
matchLabels:
env: prod