Files
fleet-examples/multi-cluster/helm
Emiliano Langella 225e7e6c2c Use new frontend image (#45)
Update the image based on new instructions from Google [1], as Container
Registry is deprecated [2].

[1]: https://cloud.google.com/kubernetes-engine/docs/tutorials/guestbook
[2]: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr
2024-03-14 10:35:18 +01:00
..
2024-03-14 10:35:18 +01:00
2020-09-15 22:35:41 -07:00
2020-09-15 22:35:41 -07:00
2020-09-15 22:35:41 -07:00

Multi-Cluster Helm Example

This example will deploy the Kubernetes sample guestbook application as packaged as a Helm chart. The app will be deployed into the fleet-mc-helm-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
  namespace: fleet-default
spec:
  repo: https://github.com/rancher/fleet-examples
  paths:
  - multi-cluster/helm
  targets:
  - name: dev
    clusterSelector:
      matchLabels:
        env: dev

  - name: test
    clusterSelector:
      matchLabels:
        env: test

  - name: prod
    clusterSelector:
      matchLabels:
        env: prod