Files
fleet-examples/multi-cluster/helm-kustomize
Corentin Néau 86f321d37b Use patchesStrategicMerge for Kustomize patching
Drop for legacy patches was dropped [1] in `sigs.k8s.io/kustomize/api`
`v0.13.0`, causing Fleet acceptance tests for Kustomize examples to
fail.

[1]: https://github.com/kubernetes-sigs/kustomize/releases/tag/api%2Fv0.13.0
2023-10-03 17:31:02 +02:00
..

Multi-Cluster Helm Kustomize Example

This example will deploy the Kubernetes sample 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-mc-helm-kustomize-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
kind: GitRepo
apiVersion: fleet.cattle.io/v1alpha1
metadata:
  name: helm-kustomize
  namespace: fleet-default
spec:
  repo: https://github.com/rancher/fleet-examples
  paths:
  - multi-cluster/helm-kustomize
  targets:
  - name: dev
    clusterSelector:
      matchLabels:
        env: dev

  - name: test
    clusterSelector:
      matchLabels:
        env: test

  - name: prod
    clusterSelector:
      matchLabels:
        env: prod