My boss defines it as a microservice for every method
That sounds incredibly complex and hard to maintain. What you need is a Docker container for every method, for isolation, then just use K8s to orchestrate them and YAML for control flow.
This is an excellent advice. Maybe double docker for every method?