1, Add/modify files under jobfiles/
directory.
2, Increase k8s job YAML file image spec's tag, for example v1 -> v2
.
3, Git commit, and tag it.
git ci -m 'your commit message'
git tag -m 'v<n>' v<n>
git push
git push --tags
Create persistent volume first,
kubectl apply -f pvc.yml
Run a job:
kubectl apply -f fio-readwrite.yml
kubectl logs -l app=k8s-fio --tail=10000
kubectl delete jobs -l app=k8s-fio
kubectl delete pvc -l app=k8s-fio
For ceph, please remove images from ceph cluster, then run these commands:
kubectl delete pv $(kubectl get pv -ocustom-columns=NAME:{.metadata.name},CLAIM:{.spec.claimRef.name} --no-headers | awk '$2 == "fio-readwrite-pvc" { print $1 }')
kubectl delete pv $(kubectl get pv -ocustom-columns=NAME:{.metadata.name},CLAIM:{.spec.claimRef.name} --no-headers | awk '$2 == "fio-readonly-pvc" { print $1 }')