Quantcast
Channel: Grafana k6 - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 362

Setting up a PersistentVolume to run test

$
0
0

Hi,

I would like to Setting up a PersistentVolume to run test. I am geting the following error:

level=error msg="The moduleSpecifier "/test/test.js" couldn’t be found on local disk. Make sure that you’ve specified the right path to the file. If you’re ru │
│ Stream closed EOF for k6-operator-system/run-k6-with-vars-initializer-vwccf (k6)

Below is my YAMLs. I am not sure what this means in the doc " When using a PersistentVolume , the operator will expect all test scripts to be contained within a directory named /test/" ? Can I please get some guidance here?

apiVersion: v1
kind: PersistentVolume
metadata:
  name: k6-volume
spec:
  capacity:
    storage: 1Gi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: /mnt/data/k6-test-scripts

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: k6-volume-claim
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
apiVersion: k6.io/v1alpha1
kind: TestRun
metadata:
  name: run-k6-with-vars
spec:
  parallelism: 3
  script:
    volumeClaim:
      name: k6-volume-claim
      file: test.js
  runner:
    env:
      - name: USERS
        value: '5'
  # cleanup: "post"

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 362

Trending Articles