-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.yaml
111 lines (107 loc) · 2.36 KB
/
install.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
apiVersion: v1
kind: ServiceAccount
metadata:
name: kluster-fleet-manager
namespace: kluster-fleet-manager
annotations: {}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kluster-fleet-manager
namespace: kluster-fleet-manager
rules:
- apiGroups: [""]
resources: [pods]
verbs: [get, watch, list]
- apiGroups: [""]
resources: [nodes]
verbs: [get, watch, list, update, patch]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kluster-fleet-manager
namespace: kluster-fleet-manager
subjects:
- kind: ServiceAccount
name: kluster-fleet-manager
namespace: kluster-fleet-manager
roleRef:
kind: ClusterRole
name: kluster-fleet-manager
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: ConfigMap
metadata:
name: kluster-fleet-manager-config
namespace: kluster-fleet-manager
labels:
app: kluster-fleet-manager
sector: coordinate
data:
config.yaml: |
sleep_interval: 20
default_over_subscription: 0.2
reserved_cpus: 1.0
reserved_memory: 2.5Gi
sectors:
coordinate:
kind: memory
fleets:
- size: small
min_capacity: 2
primary:
kind: memory
fleets:
- size: small
min_capacity: 0
- size: medium
min_capacity: 0
- size: large
min_capacity: 0
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kluster-fleet-manager
namespace: kluster-fleet-manager
labels:
app: kluster-fleet-manager
sector: coordinate
spec:
replicas: 1
selector:
matchLabels:
app: kluster-fleet-manager
sector: coordinate
template:
metadata:
labels:
app: kluster-fleet-manager
sector: coordinate
spec:
nodeSelector:
sector: coordinate
serviceAccountName: kluster-fleet-manager
volumes:
- name: application-config
configMap:
name: kluster-fleet-manager-config
containers:
- name: manager
imagePullPolicy: Always
image: rocketboosters/kluster-fleet-manager:latest
args: [--live]
tty: true
volumeMounts:
- mountPath: /application/config
name: application-config
resources:
limits:
memory: 500Mi
cpu: 500m
requests:
memory: 500Mi
cpu: 300m