@@ -226,15 +226,28 @@ jobs:
226
226
- name : Generating Go binary and Building docker image
227
227
run : |
228
228
make build-amd64
229
- # Install and configure a kind cluster
230
- - name : Installing Prerequisites (K3S Cluster)
231
- env :
232
- KUBECONFIG : /etc/rancher/k3s/k3s.yaml
229
+
230
+ - name : Install KinD
231
+ run : |
232
+ curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64
233
+ chmod +x ./kind
234
+ mv ./kind /usr/local/bin/kind
235
+
236
+ - name : Create KinD Cluster
237
+ run : |
238
+ kind create cluster --config build/kind-cluster/pod-level-kind-config.yaml
239
+
240
+ - name : Configuring and testing the Installation
233
241
run : |
234
- curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.21.11+k3s1 sh -s - --docker --write-kubeconfig-mode 664
242
+ kubectl taint nodes kind-control-plane node-role.kubernetes.io/control-plane-
243
+ kubectl cluster-info --context kind-kind
235
244
kubectl wait node --all --for condition=ready --timeout=90s
236
245
kubectl get nodes
237
-
246
+
247
+ - name : Load image on the nodes of the cluster
248
+ run : |
249
+ kind load docker-image --name=kind litmuschaos/go-runner:ci
250
+
238
251
- uses : actions/checkout@v2
239
252
with :
240
253
repository : ' uditgaurav/litmus-e2e'
@@ -244,14 +257,14 @@ jobs:
244
257
env :
245
258
GO_EXPERIMENT_IMAGE : litmuschaos/go-runner:ci
246
259
EXPERIMENT_IMAGE_PULL_POLICY : IfNotPresent
247
- KUBECONFIG : /etc/rancher/k3s/k3s.yaml
248
260
run : |
249
261
make build-litmus
250
262
make app-deploy
251
263
make pod-affected-perc-ton-series
252
- - name : Deleting K3S cluster
264
+
265
+ - name : Deleting KinD cluster
253
266
if : always()
254
- run : /usr/local/bin/k3s-uninstall.sh
267
+ run : kind delete cluster
255
268
256
269
Pod_Level_In_Parallel_Mode :
257
270
runs-on : ubuntu-latest
@@ -269,14 +282,30 @@ jobs:
269
282
- name : Generating Go binary and Building docker image
270
283
run : |
271
284
make build-amd64
272
- # Install and configure a kind cluster
273
- - name : Installing Prerequisites (K3S Cluster)
274
- env :
275
- KUBECONFIG : /etc/rancher/k3s/k3s.yaml
285
+
286
+ - name : Install KinD
287
+ run : |
288
+ curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64
289
+ chmod +x ./kind
290
+ mv ./kind /usr/local/bin/kind
291
+
292
+ - name : Create KinD Cluster
293
+ run : |
294
+ kind create cluster --config build/kind-cluster/pod-level-kind-config.yaml
295
+
296
+ - name : Configuring and testing the Installation
297
+ env :
298
+ KUBECONFIG : /home/runner/.kube/config
276
299
run : |
277
- curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.21.11+k3s1 sh -s - --docker --write-kubeconfig-mode 664
300
+ kubectl taint nodes kind-control-plane node-role.kubernetes.io/control-plane-
301
+ kubectl cluster-info --context kind-kind
278
302
kubectl wait node --all --for condition=ready --timeout=90s
279
303
kubectl get nodes
304
+
305
+ - name : Load image on the nodes of the cluster
306
+ run : |
307
+ kind load docker-image --name=kind litmuschaos/go-runner:ci
308
+
280
309
- uses : actions/checkout@v2
281
310
with :
282
311
repository : ' uditgaurav/litmus-e2e'
@@ -286,14 +315,15 @@ jobs:
286
315
env :
287
316
GO_EXPERIMENT_IMAGE : litmuschaos/go-runner:ci
288
317
EXPERIMENT_IMAGE_PULL_POLICY : IfNotPresent
289
- KUBECONFIG : /etc/rancher/k3s/k3s.yaml
318
+ KUBECONFIG : /home/runner/.kube/config
290
319
run : |
291
320
make build-litmus
292
321
make app-deploy
293
322
make pod-affected-perc-ton-parallel
294
- - name : Deleting K3S cluster
323
+
324
+ - name : Deleting KinD cluster
295
325
if : always()
296
- run : /usr/local/bin/k3s-uninstall.sh
326
+ run : kind delete cluster
297
327
298
328
Node_Level_Tests :
299
329
runs-on : ubuntu-latest
0 commit comments