-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcontinuum-agent-daemonset.yaml
More file actions
97 lines (95 loc) · 2.87 KB
/
continuum-agent-daemonset.yaml
File metadata and controls
97 lines (95 loc) · 2.87 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
86
87
88
89
90
91
92
93
94
95
96
97
# DaemonSet for continuum Agent
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: mlsysops-continuum-agent
namespace: mlsysops-framework
spec:
selector:
matchLabels:
app: continuum-agent
template:
metadata:
labels:
app: continuum-agent
spec:
serviceAccountName: mlsysops-agents-sa
# Use nodeSelector to target nodes with mlsysops/continuumLayer=continuum
nodeSelector:
mlsysops.eu/continuumLayer: "continuum"
initContainers:
- name: delay-startup
image: busybox
command: ["sh", "-c", "echo 'Waiting...' && sleep 10"]
containers:
- name: continuum-agent
imagePullPolicy: Always
image: harbor.nbfc.io/mlsysops/continuum-agent
env:
- name: KARMADA_API_KUBECONFIG
value: /etc/kubeconfigs/karmada-api.kubeconfig
- name: REDIS_HOST
value: {{ KARMADA_HOST_IP }}
- name: REDIS_PORT
value: "6379"
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: EJABBERD_DOMAIN
value: {{ KARMADA_HOST_IP }}
- name: NODE_PASSWORD
value: "1234"
- name: DESCRIPTION_PATH
value: "/etc/mlsysops/descriptions"
- name: MLS_OTEL_MIMIR_EXPORT_ENDPOINT
value: http://square2.atsquare.gr:9009/api/v1/push
resources:
requests:
memory: "128Mi"
cpu: "250m"
limits:
memory: "256Mi"
cpu: "500m"
volumeMounts:
- name: continuum-description-volume
mountPath: /etc/mlsysops/descriptions
- name: continuum-config-volume
mountPath: /etc/mlsysops/config
- name: continuum-policies-volume
mountPath: /etc/mlsysops/policies
- name: continuum-karmadaapi-config-volume
mountPath: /etc/kubeconfigs
volumes:
- name: continuum-config-volume
configMap:
name: continuum-agent-config
- name: continuum-description-volume
configMap:
name: continuum-system-description
- name: continuum-policies-volume
configMap:
name: continuum-policies
- name: continuum-karmadaapi-config-volume
configMap:
name: continuum-karmadapi-config
---
# Empty ConfigMap for Cluster Policies
apiVersion: v1
kind: ConfigMap
metadata:
name: continuum-policies
namespace: mlsysops-framework
data: {}
---
# Empty ConfigMap for agent configuration
apiVersion: v1
kind: ConfigMap
metadata:
name: continuum-agent-config
namespace: mlsysops-framework
data: {}