Newer
Older
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
# Author: Panagiotis Karamolegkos (UPRC)
# The ConfigMap will probably be changed for the Integration with other components.
apiVersion: v1
kind: ConfigMap
metadata:
name: pdlc-config-map
namespace: he-codeco-pdlc # The desired namespace for the Config Map
data:
topology.json: |
{
"node_names": [
"k8s-master",
"k8s-worker"
],
"connections": [
[1, 1],
[1, 1]
]
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: pdlc-dp
namespace: he-codeco-pdlc # The desired namespace
spec:
replicas: 1
selector:
matchLabels:
app: pdlc-dp
template:
metadata:
labels:
app: pdlc-dp
spec:
serviceAccountName: default
containers:
- name: pdlc-dp
image: docker.io/hecodeco/pdlc-dp:v0.1.2
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
volumeMounts:
- name: shared-volume
mountPath: /data
- name: config-volume # Volume Mount for the config-map
mountPath: /data/topology/config.json
subPath: topology.json
env:
- name: ACM_NAMESPACE
value: "he-codeco-acm"
- name: MDM_NAMESPACE
value: "he-codeco-mdm"
- name: NETMA_NAMESPACE
value: "he-codeco-netma"
- name: CA_DIR
value: "/data/CA/"
- name: CA_FILE
value: "data_CA.csv"
- name: RL_DIR
value: "/data/RL/"
- name: RL_NODES_FILE
value: "test_nodes.csv"
- name: RL_PODS_FILE
value: "test_integracio.csv"
- name: GNN_DIR
value: "/data/GNN/"
- name: GNN_FILE
value: "data_GNN.csv"
- name: RECORDS_INTERVAL
value: "60" # These are seconds
volumes:
- name: shared-volume
persistentVolumeClaim:
claimName: shared-pvc-rw
- name: config-volume # Volume for the config-map
configMap:
name: pdlc-config-map