-
Notifications
You must be signed in to change notification settings - Fork 0
/
policyset-and-placement.yaml
58 lines (55 loc) · 1.41 KB
/
policyset-and-placement.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
apiVersion: cluster.open-cluster-management.io/v1beta2
kind: ManagedClusterSet
metadata:
name: redhat-demo
---
apiVersion: policy.open-cluster-management.io/v1beta1
kind: PolicySet
metadata:
name: redhat-demo
namespace: openshift-acm-policies
spec:
description: ""
policies:
- policy-flag-expiring-certificate
- policy-max-clusteradmin-iampolicy
- policy-standard-ns-default-networkpolicy
- policy-push-enterprise-ca
- policy-musthave-ns-xyz
- policy-acs-secured-cluster
- openshift-oauth-policy
- openshift-console-identity-policy
- acm-poc-role-projet-a-dev-musthave
- policy-compliance-operator
- apply-tenant-quota
---
apiVersion: apps.open-cluster-management.io/v1
kind: PlacementRule
metadata:
name: redhat-demo-placement
namespace: openshift-acm-policies
spec:
clusterSelector:
matchExpressions:
- key: cluster.open-cluster-management.io/clusterset
operator: In
values:
- "redhat-demo"
clusterConditions:
- type: ManagedClusterConditionAvailable
status: "True"
---
apiVersion: policy.open-cluster-management.io/v1
kind: PlacementBinding
metadata:
name: redhat-demo-placement
namespace: openshift-acm-policies
placementRef:
name: redhat-demo-placement
apiGroup: apps.open-cluster-management.io
kind: PlacementRule
subjects:
- name: redhat-demo
apiGroup: policy.open-cluster-management.io
kind: PolicySet