moluzhui
moluzhui

Reputation: 1093

docker compose cli to kubectl

My project which need to use the python subprocess module to operate compose yaml file, such as docker-compose up/start/stop/restart/down, need to transfer from compose to k8s now

So how does my compose cli correspond to the kubectl cli? For example, docker-compose up seems to correspond to kubectl create/apply, how to find corresponding commands in kubectl for docker-compose down,stop,start and restart commands

I would appreciate it if you could tell me how to solve it?

Upvotes: 1

Views: 202

Answers (1)

Tigran
Tigran

Reputation: 674

It works a bit different way in k8s. Check how Deployment works.

Upvotes: 1

Related Questions