kkcfung
kkcfung

Reputation: 21

how to edit file on remote host container where kubernetes pod is created

In my scenario, our package from gitlab is already implemented pipeline to deploy kubernetes pod on remote host server. If I want to edit/open folder on kubernetes pod of the container using vscode, is it doable for vscode?

Upvotes: 2

Views: 2100

Answers (1)

user15659347
user15659347

Reputation:

Official Visual Studio Code documentation shows how to attach to a running container, also inside Kubernetes cluster.


However, using Persisent Volumes may be a better approach.

Files modified in a "local" directory are simultaneously modified in attached volume (this is a bit more complicated but lets go with that for the sake of example), and they persist between pod restarts.

Upvotes: 1

Related Questions