How can I check whether K8s volume was mounted correctly?
You can try like the below mentioned the argument part--- apiVersion: v1kind: Podmetadata: labels: purpose: demonstrate-command name: command-demospec: containers: - args: - cd /s3-data; echo "Just s3-data dir"; ls; echo "After making a sample file"; touch sample.txt; ls; command: - /bin/sh - -c image: "<My Image>" name: containername
for reference:How to set multiple commands in one yaml file with Kubernetes?