-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathnode-agents-daemonset.yaml
More file actions
85 lines (82 loc) · 2.22 KB
/
node-agents-daemonset.yaml
File metadata and controls
85 lines (82 loc) · 2.22 KB
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
---
# DaemonSet for Node Agent
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: mlsysops-node-agent
namespace: mlsysops-framework
spec:
selector:
matchLabels:
app: node-agent
template:
metadata:
labels:
app: node-agent
spec:
# Use nodeSelector to target nodes with mlsysops/continuumLayer=node
nodeSelector:
mlsysops.eu/continuumLayer: "node"
initContainers:
- name: delay-startup
image: busybox
command: ["sh", "-c", "echo 'Waiting...' && sleep 35"]
containers:
- name: node-agent
image: harbor.nbfc.io/mlsysops/node-agent
imagePullPolicy: Always
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: EJABBERD_DOMAIN
value: {{ KARMADA_HOST_IP }}
- name: REDIS_HOST
value: {{ KARMADA_HOST_IP }}
- name: NODE_PASSWORD
value: "mysecret"
- name: DESCRIPTION_PATH
value: "/etc/mlsysops/descriptions"
- name: MLS_OTEL_NODE_EXPORTER_FLAGS
value: cpu,meminfo
resources:
requests:
memory: "128Mi"
cpu: "250m"
limits:
memory: "256Mi"
cpu: "500m"
volumeMounts:
- name: description-volume
mountPath: /etc/mlsysops/descriptions
- name: node-config-volume
mountPath: /etc/mlsysops/config
- name: policies-volume
mountPath: /etc/mlsysops/policies
volumes:
- name: node-config-volume
configMap:
name: node-agents-config
- name: description-volume
configMap:
name: node-system-descriptions
- name: policies-volume
configMap:
name: node-agents-policies
---
# Empty ConfigMap for Cluster Policies
apiVersion: v1
kind: ConfigMap
metadata:
name: node-agents-policies
namespace: mlsysops-framework
data: {}
---
# Empty ConfigMap for agent configuration
apiVersion: v1
kind: ConfigMap
metadata:
name: node-agents-config
namespace: mlsysops-framework
data: {}