• Kubernetes Submit Queue's avatar
    Merge pull request #46089 from karataliu/wincri1 · 5e853709
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 46124, 46434, 46089, 45589, 46045)
    
    Support TCP type runtime endpoint for kubelet
    
    **What this PR does / why we need it**:
    Currently the grpc server for kubelet and dockershim has a hardcoded endpoint: unix socket '/var/run/dockershim.sock', which is not applicable on non-unix OS.
    
    This PR is to support TCP endpoint type besides unix socket.
    
    **Which issue this PR fixes** 
    This is a first attempt to address issue https://github.com/kubernetes/kubernetes/issues/45927
    
    **Special notes for your reviewer**:
    Before this change, running on Windows node results in:
    ```
    Container Manager is unsupported in this build
    ```
    
    After adding the cm stub, error becomes:
    ```
    listen unix /var/run/dockershim.sock: socket: An address incompatible with the requested protocol was used.
    ```
    
    This PR is to fix those two issues.
    
    After this change, still meets 'seccomp' related issue when running on Windows node, needs more updates later.
    
    **Release note**:
    5e853709
kubelet.go 79.4 KB