Update examples

This commit is contained in:
Darren Shepherd
2020-09-15 22:35:41 -07:00
parent 556d18c26b
commit 4eff05a5c2
153 changed files with 24853 additions and 120 deletions

View File

@@ -0,0 +1,17 @@
# Helm Kustomize 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 and will modify the helm chart using Kustomize.
The app will be deployed into the `fleet-helm-kustomize-example` namespace.
```yaml
kind: GitRepo
apiVersion: fleet.cattle.io/v1alpha1
metadata:
name: helm-kustomize
namespace: fleet-local
spec:
repo: https://github.com/rancher/fleet-examples/
paths:
- helm-kustomize
```

View File

@@ -0,0 +1,10 @@
# This file and all contents in it are OPTIONAL.
#
# Refer to ../helm/fleet.yaml and ../kustomize/fleet.yaml for the full reference
# of what can be included here. All Helm and Kustomize options apply
namespace: fleet-helm-kustomize-example
helm:
chart: https://github.com/rancher/fleet-examples/releases/download/example/guestbook-0.0.0.tgz
kustomize:
dir: ./overlays/dev

View File

@@ -0,0 +1,3 @@
patches:
- redis-slave-deployment.yaml
- redis-slave-service.yaml

View File

@@ -0,0 +1,6 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: redis-slave
spec:
replicas: 0

View File

@@ -0,0 +1,7 @@
kind: Service
apiVersion: v1
metadata:
name: redis-slave
spec:
selector:
role: master