Update examples
This commit is contained in:
17
single-cluster/helm-kustomize/README.md
Normal file
17
single-cluster/helm-kustomize/README.md
Normal 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
|
||||
```
|
||||
10
single-cluster/helm-kustomize/fleet.yaml
Normal file
10
single-cluster/helm-kustomize/fleet.yaml
Normal 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
|
||||
@@ -0,0 +1,3 @@
|
||||
patches:
|
||||
- redis-slave-deployment.yaml
|
||||
- redis-slave-service.yaml
|
||||
@@ -0,0 +1,6 @@
|
||||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: redis-slave
|
||||
spec:
|
||||
replicas: 0
|
||||
@@ -0,0 +1,7 @@
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: redis-slave
|
||||
spec:
|
||||
selector:
|
||||
role: master
|
||||
Reference in New Issue
Block a user