- Issue created by @zterry95
- πΊπΈUnited States yas California πΊπΈ
@zterry95
Unfortunately, Cloud Orchestrator UI doesn't support pod exec so that you need to run the command like
kubectl exec -it <your-pod-name> -- drush cache-rebuild
from the command line on your terminal. Or you can schedule the cron job to clear the cache to execute the command?Thanks
- π¨π³China zterry95
Hi @yas
This is not a feature request for supporting pod exec in Cloud Orchestrator UI.We would like to do this in the custom modules. But we can't find a API to do this, so we ask for help here.
There is a funciton getLogs(), but no function for podExec().https://git.drupalcode.org/project/cloud/-/blob/6.x/modules/cloud_servic...
- πΊπΈUnited States yas California πΊπΈ
@zterry95
Our Cloud module is using maclof/kubernetes-client. Thus, the method in
maclof/kubernetes-client::exec()
is here athttps://github.com/maclof/kubernetes-client/blob/master/src/Repositories...
HTH