dgrove-oss opened a new pull request #3338: implement suspend/resume for 
KubernetesContainer
URL: https://github.com/apache/incubator-openwhisk/pull/3338
 
 
   We can implement suspend and resume for KubernetesContainerPool by 
delegating the operations to an invoker-agent that runs as a DaemonSet on every 
invoker node.  The invoker-agent interacts with the local docker/containerd 
engine to pause/unpause containers as directed by the invoker.
   
   This PR contains the OpenWhisk core changes to implement this design.  It 
assumes an invoker-agent as implemented in 
https://github.com/apache/incubator-openwhisk-deploy-kube/pull/155.  The main 
changes in this PR are:
   1.  Add configuration for the invoker-agent to application.conf (default to 
disabled).
   2. Implement suspend/resume by delegating to the invoker-agent
   3. Change the implementation of container creation to use the kubeRestClient 
to create the containers instead of using the kubectl command line.  As part of 
creation we now extract and save the workerNode IP information in the 
KubernetesContainer to cache the information needed to communicate with the 
invoker-agent.
   4. Update test cases for changes in the KubernetesClient API.
   
   If you look into the invoker-agent code in openwhisk-deploy-kube code, you 
will see that it also support log consolidation.   I plan to submit a separate 
PR for the openwhisk core side of the logging changes (because it also includes 
a modest refactor to the logging implementation that should be reviewed 
separately from the Kubernetes-centric changes in this PR).
    
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to