-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support using docker containerd in COS and Ubuntu on GCE. #77889
Support using docker containerd in COS and Ubuntu on GCE. #77889
Conversation
/retest |
48ca59c
to
328560d
Compare
cluster/gce/config-default.sh
Outdated
CONTAINER_RUNTIME_NAME=${KUBE_CONTAINER_RUNTIME_NAME:-containerd} | ||
CONTAINER_RUNTIME_ENDPOINT=${KUBE_CONTAINER_RUNTIME_ENDPOINT:-unix:///run/containerd/containerd.sock} | ||
LOAD_IMAGE_COMMAND=${KUBE_LOAD_IMAGE_COMMAND:-ctr -n=k8s.io images import} | ||
KUBELET_TEST_ARGS="${KUBE_KUBELET_EXTRA_ARGS:-} --runtime-cgroups=/system.slice/containerd.service" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about appending to KUBELET_TEST_ARGS
directly? That way if line 97 changes, this wouldn't break
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -95,6 +95,12 @@ MASTER_EXTRA_METADATA=${KUBE_MASTER_EXTRA_METADATA:-${KUBE_EXTRA_METADATA:-}} | |||
NODE_EXTRA_METADATA=${KUBE_NODE_EXTRA_METADATA:-${KUBE_EXTRA_METADATA:-}} | |||
# KUBELET_TEST_ARGS are extra arguments passed to kubelet. | |||
KUBELET_TEST_ARGS=${KUBE_KUBELET_EXTRA_ARGS:-} | |||
if [[ "${CONTAINER_RUNTIME}" == "containerd" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm torn between leaving this as it is, or grouping the block with the docker settings above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like this?
cluster/gce/util.sh
Outdated
@@ -782,8 +782,8 @@ function construct-linux-kubelet-flags { | |||
if [[ -n "${NODE_TAINTS:-}" ]]; then | |||
flags+=" --register-with-taints=${NODE_TAINTS}" | |||
fi | |||
if [[ -n "${CONTAINER_RUNTIME:-}" ]]; then | |||
flags+=" --container-runtime=${CONTAINER_RUNTIME}" | |||
if [[ "${CONTAINER_RUNTIME:-docker}" != "docker" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we default CONTAINER_RUNTIME
to docker anyway?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
cluster/gce/gci/configure-helper.sh
Outdated
assemble-docker-flags | ||
elif [[ "${container_runtime}" == "containerd" ]]; then | ||
if [[ -e "${KUBE_HOME}/bin/gke-internal-configure-helper.sh" ]]; then | ||
gke-setup-containerd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm....so we still keep an internal copy of setup function.....is that necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
Signed-off-by: Lantao Liu <lantaol@google.com>
328560d
to
bc1a78d
Compare
/test pull-kubernetes-e2e-gce-device-plugin-gpu |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Random-Liu, yujuhong The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-kubernetes-e2e-gce-100-performance |
/retest Review the full test history for this PR. Silence the bot with an |
This PR:
To use it, just run:
/cc @dchen1107 @yujuhong @yguo0905
Signed-off-by: Lantao Liu lantaol@google.com