-
Notifications
You must be signed in to change notification settings - Fork 33
/
pacman-app.yaml
73 lines (73 loc) · 1.58 KB
/
pacman-app.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
65
66
67
68
69
70
71
72
73
---
apiVersion: apps.open-cluster-management.io/v1
kind: Channel
metadata:
name: pacman-app-latest
namespace: pacman-app
labels:
app.kubernetes.io/name: pacman
annotations:
apps.open-cluster-management.io/github-path: deploy
spec:
type: GitHub
pathname: https://github.com/mdelder/k8s-pacman-app.git
# secretRef:
# name: github-credentials
---
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: pacman-app
namespace: pacman-app
spec:
componentKinds:
- group: apps.open-cluster-management.io
kind: Subscription
descriptor: {}
selector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- pacman
---
apiVersion: apps.open-cluster-management.io/v1
kind: Subscription
metadata:
annotations:
apps.open-cluster-management.io/git-branch: main
apps.open-cluster-management.io/github-path: deploy
name: pacman-app
namespace: pacman-app
labels:
app.kubernetes.io/name: pacman
spec:
channel: pacman-app/pacman-app-latest
hooksecretref:
name: toweraccess
placement:
placementRef:
kind: PlacementRule
name: pacman-dev-clusters
---
apiVersion: apps.open-cluster-management.io/v1
kind: PlacementRule
metadata:
name: pacman-dev-clusters
namespace: pacman-app
spec:
clusterConditions:
- status: "True"
type: ManagedClusterConditionAvailable
clusterSelector:
clusterReplicas: 2
matchExpressions:
- key: region
operator: In
values:
- us-east-1
- us-west-1
- europe-west3
matchLabels:
environment: dev
apps/pacman: deployed