forked from open-cluster-management-io/policy-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subscription.yaml
64 lines (64 loc) · 1.58 KB
/
subscription.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
59
60
61
62
63
64
apiVersion: v1
kind: Namespace
metadata:
name: policy-generator-demo
---
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: policy-generator-demo
namespace: policy-generator-demo
spec:
componentKinds:
- group: apps.open-cluster-management.io
kind: Subscription
selector:
matchExpressions:
- key: app
operator: In
values:
- policy-generator-demo
---
apiVersion: apps.open-cluster-management.io/v1
kind: Channel
metadata:
annotations:
apps.open-cluster-management.io/reconcile-rate: medium
name: policy-generator-demo
namespace: policy-generator-demo
spec:
type: Git
pathname: https://github.com/open-cluster-management-io/policy-collection.git
---
apiVersion: apps.open-cluster-management.io/v1
kind: Subscription
metadata:
annotations:
apps.open-cluster-management.io/git-branch: main
apps.open-cluster-management.io/git-path: policygenerator/kustomize
apps.open-cluster-management.io/reconcile-option: merge
labels:
app: policy-generator-demo
name: policy-generator-demo-subscription
namespace: policy-generator-demo
spec:
channel: policy-generator-demo/policy-generator-demo
placement:
placementRef:
kind: PlacementRule
name: policy-generator-demo-placement
---
apiVersion: apps.open-cluster-management.io/v1
kind: PlacementRule
metadata:
labels:
app: policy-generator-demo
name: policy-generator-demo-placement
namespace: policy-generator-demo
spec:
clusterSelector:
matchExpressions:
- key: local-cluster
operator: In
values:
- "true"