@@ -45,15 +45,16 @@ helm install ... --set nfd=true --set podMonitor=true
45
45
46
46
** NOTE: DEBUGGING: TODO to be remove before merging **
47
47
48
- Build local image for tests/development + fix /pcm/resctrl mounting:
49
48
```
50
- # Local image "indirect"
51
- helm install pcm . --set debugPcm=true -f values-local-image.yaml
52
-
53
- BUIDLING IMAGE
49
+ # Build local image for tests/development + fix /pcm/resctrl mounting (assuming project was configured with cmake previously):
54
50
(cd ../.. ; (cd build ; make -j pcm pcm-sensor-server) ; docker build . -t localhost:5001/pcm-local && docker push localhost:5001/pcm-local; docker run -ti --rm --name pcmtest --entrypoint bash localhost:5001/pcm-local -c "pcm 2>&1 | head -5" )
55
51
56
- helm upgrade --install pcm . --set privileged=false --set nfd=true --set podMonitor=true -f values-metal.yaml -f values-indirect.yaml -f values-local-image.yaml --set debugPcm=1
52
+ # Local image "indirect"
53
+ helm upgrade --install pcm . --set debugPcm=true
54
+
55
+ # exec or check logs
56
+ kubectl exec -ti ds/pcm -- bash
57
+ kubectl logs ds/pcm
57
58
```
58
59
59
60
### Requirements
@@ -124,12 +125,48 @@ mount -t resctrl resctrl /sys/fs/resctrl
124
125
```
125
126
126
127
#### 2) Create kind based Kubernetes cluster
128
+
129
+
127
130
```
128
131
kind create cluster
129
- kind export kubeconfig
130
132
```
131
133
134
+ ** Note** to be able to collect and test resctrl RDT metrics, kind cluster have to be created with additional mounts:
135
+
136
+ ```
137
+ nodes:
138
+ - role: control-plane
139
+ extraMounts:
140
+ - hostPath: /sys/fs/resctrl
141
+ containerPath: /sys/fs/resctrl
142
+ ```
132
143
or (optionally), create kind cluster with local registry with [ this script] ( https://kind.sigs.k8s.io/docs/user/local-registry/ ) .
144
+ and apply the patch using sed:
145
+
146
+ ```
147
+ wget https://kind.sigs.k8s.io/examples/kind-with-registry.sh
148
+
149
+ sed -i '/apiVersion: kind.x-k8s.io\/v1alpha4/a \
150
+ nodes:\
151
+ - role: control-plane\
152
+ extraMounts:\
153
+ - hostPath: /sys/fs/resctrl\
154
+ containerPath: /sys/fs/resctrl\
155
+ ' kind-with-registry.sh
156
+
157
+ bash kind-with-registry.sh
158
+ ```
159
+
160
+ Check that resctrl is available inside kind node:
161
+ ```
162
+ docker exec kind-control-plane ls /sys/fs/resctrl/info
163
+ ```
164
+
165
+ Export kind kubeconfig as default for furhter kubectl commands:
166
+ ```
167
+ kind export kubeconfig
168
+ ```
169
+
133
170
134
171
#### 3) (Optionally) Deploy Node feature discovery
135
172
0 commit comments