apiVersion: placement.kubernetes-fleet.io/v1beta1
kind: ClusterResourcePlacement
metadata:
  name: crp
spec:
  resourceSelectors:
    - group: apiextensions.k8s.io
      kind: CustomResourceDefinition
      name: testresources.test.kubernetes-fleet.io
      version: v1
  policy:
    placementType: PickN
    numberOfClusters: 20
    topologySpreadConstraints:
      - maxSkew: 2
        topologyKey: env
        whenUnsatisfiable: DoNotSchedule
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 100%
      maxSurge: 25%
      unavailablePeriodSeconds: 15
  revisionHistoryLimit: 15
