This message was deleted.
# fleet
a
This message was deleted.
b
I figured out that it does not use kustomize, since unless I specify the base in the top level like this it does not work:
Copy code
kustomize:
  dir: overlays/prod
targetCustomizations:
  - name: prod
    matchLabels:
      env: prod
    kustomize:
      dir: overlays/prod
It might be that the cluster selector is not being used, but I checked and there is a label
env: prod
on that cluster on the rancher side, which shows up on fleet:
From the examples, it does not look like the top level
kustomize
is reqiured: https://github.com/rancher/fleet-examples/blob/master/multi-cluster/kustomize/fleet.yaml. If anyone can see what I might be doing wrong here, or give some other things I can look at, please let me know. I will experiment with this again in the future (probably when I actually need to set it up for different environments)
p
you could try
Copy code
kustomize:
  dir: overlays/prod
targetCustomizations:
  - name: prod
    clusterSelector:
      matchLabels:
        env: prod
    kustomize:
      dir: overlays/prod
b
🤦 I should have triple checked that my YAML file were correct. Thanks for the help!