dotnet core web api running on built in Docker container and running on Kubernetes
I think there can be at least 2 reasons for that:
Your Web API application depends on some DB/storage and for some reasons there bigger latency when you run it on k8s.
Probably you did not configure deployment limits/requests for CPU.