https://rancher.com/ logo
#fleet
Title
d

dazzling-chef-87126

12/15/2022, 8:40 AM
Hi @here, Glad to join the fleet channel. My question: How to set the Rancher project by name for a namespace using fleet? I used this yaml and it works:
Copy code
apiVersion: v1
kind: Namespace
metadata:
  annotations:
    <http://field.cattle.io/projectId|field.cattle.io/projectId>: c-pkz94:p-5n2wt
  name: c-providers
spec:
  finalizers:
  - kubernetes
But the projectId (ie`c-pkz94:p-5n2wt`) isn't consistent between rancher cluster.
s

steep-furniture-72588

12/16/2022, 2:24 PM
Use templating like helm /kustomize and cluster selectors to achieve what you want
8 Views