You can follow this tutorial to set up Kubeflow or install MiniKF (require more storage but having more features)
components/<component group>/<component name>/
src/* #Component source code files
tests/* #Unit tests
run_tests.sh #Small script that runs the tests
README.md #Documentation. Move to docs/ if multiple files needed
Dockerfile #Dockerfile to build the component container image
build_image.sh #Small script that runs docker build and docker push
component.yaml #Component definition in YAML format