• Kubernetes Submit Queue's avatar
    Merge pull request #62508 from dims/allow-customized-image-for-dockerized-kubelet · 24bc761a
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Support containerized kubelet in CI
    
    **What this PR does / why we need it**:
    
      * Adjust hyperkube Makefile to allow HYPERKUBE_BIN to be
        specified from outside
    
      * new DOCKER_ROOT variable to specify --root-dir and associated
        volume for kubelet to know where docker directory lives
    
      * Save the docker logs when we kill the kubelet container
    
      * Allow customized image for dockerized kubelet and build a Default
        image if one is not specified
    
      We should allow a custom build using script we have:
      `VERSION="latest" REGISTRY="k8s.gcr.io" hack/dev-push-hyperkube.sh`
    
      to be used quickly using DOCKERIZE_KUBELET. To do this we remove the
      hard coded `k8s.gcr.io/kubelet` image and introduce a new environment
      variable `KUBELET_IMAGE`.
    
      Note that we are switching to hyperkube from kubelet as we have a quick
      and easy script to build hyperkube image and load it into local docker
      daemon. This reduces bad hacks like `docker tag
      k8s.gcr.io/hyperkube-amd64:<tag> k8s.gcr.io/kubelet:latest` being used
      by folks today (see 62057)
    
      * Better cope with PID 0 when running "docker inspect" to look for
        the process id for kubelet container
    
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes #
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    24bc761a
Name
Last commit
Last update
..
addons Loading commit data...
centos Loading commit data...
gce Loading commit data...
images Loading commit data...
juju Loading commit data...
kubemark Loading commit data...
kubernetes-anywhere Loading commit data...
local Loading commit data...
log-dump Loading commit data...
pre-existing Loading commit data...
skeleton Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
clientbin.sh Loading commit data...
common.sh Loading commit data...
get-kube-binaries.sh Loading commit data...
get-kube-local.sh Loading commit data...
get-kube.sh Loading commit data...
kube-down.sh Loading commit data...
kube-up.sh Loading commit data...
kube-util.sh Loading commit data...
kubeadm.sh Loading commit data...
kubectl.sh Loading commit data...
restore-from-backup.sh Loading commit data...
test-e2e.sh Loading commit data...
test-network.sh Loading commit data...
test-smoke.sh Loading commit data...
update-storage-objects.sh Loading commit data...
validate-cluster.sh Loading commit data...