Skip to content

Commit

Permalink
Fix transient Pod MatchNodeSelector failed as kubelet label missing (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
yqwang-ms authored Sep 15, 2020
1 parent 684561d commit a5cc5b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion contrib/kubespray/example/openpai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ kubelet_custom_flags:
# kube_feature_gates: []

## Support custom flags to be passed to kubelet only on nodes, not masters
# kubelet_node_custom_flags: []
kubelet_node_custom_flags:
- "--node-labels=pai-worker=true"

k8s_image_pull_policy: Always

Expand Down
3 changes: 2 additions & 1 deletion contrib/kubespray/quick-start/openpai.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ kubelet_custom_flags:
# kube_feature_gates: []

## Support custom flags to be passed to kubelet only on nodes, not masters
# kubelet_node_custom_flags: []
kubelet_node_custom_flags:
- "--node-labels=pai-worker=true"

k8s_image_pull_policy: Always

Expand Down
1 change: 1 addition & 0 deletions deployment/k8sPaiLibrary/template/kubelet.sh.template
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ docker run \
--pod-manifest-path=/etc/kubernetes/manifests \
--allow-privileged=true \
--logtostderr=true \
--node-labels=pai-worker=true \
--pod-infra-container-image {{ cluster_cfg['kubernetes']['docker-registry'] }}/pause-amd64:3.0 \
--image-pull-progress-deadline=10m \
--docker-root=${DOCKER_ROOT_DIR_FOR_KUBELET} \
Expand Down

0 comments on commit a5cc5b4

Please sign in to comment.