Reputation: 1093
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