I
I
Ivan Vekov2021-02-01 23:08:33
PHP
Ivan Vekov, 2021-02-01 23:08:33

What is the best way to deploy PHP to minikube/kubernetes?

Hello,

I am writing an application on a minicube, and I wondered - "Am I deploying it correctly at all?".

The bottom line is:

Now I'm doing this - there is an app folder, where the microservice application is, and there is a folder with microservice configs. Accordingly, when it starts, it mounts the application in the sub.

And there is another idea - to write a command in the git dockerfile to deploy the application from the git. Then you don't have to drag the folder, and there will be no problems with mounts (and now they are, because I don't understand how to set up a mount in a minicube virtualized via km2 - it simply doesn't mount).

What is right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2021-02-01
@deliro

Your image with the application should be self-contained and should only receive configs from the outside to run - secrets to the database and all that (12factor). Mounting folders is for development, but not for sales.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question