'Changes not applying in kubernetes pod

I have attached to a running pod using vscode using the remote development extension, like described in a post here.

However, the changes are not applied to the running pod. I have kubectl exec <pod-name> -it -- /bin/sh in the pod and see that the file is changed. Does the pod need to get restarted for changes to apply or is there some cache I am missing? I am a beginner in kubernetes.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source