-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathnear-edge.yaml
54 lines (54 loc) · 1.52 KB
/
near-edge.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
---
apiVersion: cluster.open-cluster-management.io/v1beta1
kind: Placement
metadata:
name: placement
namespace: openshift-gitops
spec:
clusterSets:
- poc-near-edge
predicates:
- requiredClusterSelector:
labelSelector: {}
tolerations:
- key: cluster.open-cluster-management.io/unreachable
operator: Exists
- key: cluster.open-cluster-management.io/unavailable
operator: Exists
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: appset
namespace: openshift-gitops
spec:
generators:
- clusterDecisionResource:
configMapRef: acm-placement
labelSelector:
matchLabels:
cluster.open-cluster-management.io/placement: placement
requeueAfterSeconds: 30
template:
metadata:
name: '{{name}}-application'
labels:
apps.open-cluster-management.io/pull-to-ocm-managed-cluster: 'true'
annotations:
argocd.argoproj.io/skip-reconcile: 'true'
apps.open-cluster-management.io/ocm-managed-cluster: '{{name}}'
apps.open-cluster-management.io/ocm-managed-cluster-app-namespace: near-edge-acm-template
spec:
project: default
source:
repoURL: 'https://github.com/opendatahub-io/ai-edge.git'
targetRevision: main
path: acm/odh-edge/apps/app
destination:
server: https://kubernetes.default.svc
namespace: near-edge-acm-template
syncPolicy:
automated:
prune: true
syncOptions:
- CreateNamespace=true