K
K
Kirill Kazakov2017-10-26 14:01:26
IntelliJ IDEA
Kirill Kazakov, 2017-10-26 14:01:26

Kubernetes - how to get access from your machine inside the mounted storage?

My case:
There is kubernetes with nodejs service. I write in NodeJS, I want to write code on a local computer on my local IDE, with any change in the IDE, the changes are copied to a remote server via ssh. It’s convenient, you don’t need to set up a local environment, you can work from any PC, from where you can synchronize the code via ssh, dns settings, database versions, etc...
Through docker on a remote server, it’s quite easy to implement, mount the directory to the container, give access ssh to this directory, start the container, voila! When you change the code, the changed part is copied to a remote server, a la supervisor sees the changes, your changes are already on the site!
How to do the same in kubernetes, and I want the directory to be on the node along with the service, and not shared somewhere on the master. I think it would be possible to create a volume, but have not yet figured out how to access inside it from outside ......

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rustler2000, 2017-10-26
@rustler2000

Google not? https://kubernetes.io/docs/concepts/storage/persis...

C
chupasaurus, 2017-10-26
@chupasaurus

You need docker-compose for such a workflow, not k8s.
In general, normal people use version control systems, and a push with a configured auto-deploy will be much better.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question