changed
|
|
cmd
|
set -o pipefail
for node in $(kubectl get nodes -o json | jq -r '.items[] | select(.spec.taints[]?.key=="node-role.kubernetes.io/controlplane") | .metadata.labels."kubernetes.io/hostname"');
do
kubectl taint node ${node} node-role.kubernetes.io/controlplane:NoSchedule-
kubectl taint node ${node} node-role.kubernetes.io/etcd:NoExecute-
done
|
delta
|
|
end
|
2023-10-23 16:24:00.044368
|
invocation
|
{
"module_args": {
"_raw_params": "set -o pipefail\nfor node in $(kubectl get nodes -o json | jq -r '.items[] | select(.spec.taints[]?.key==\"node-role.kubernetes.io/controlplane\") | .metadata.labels.\"kubernetes.io/hostname\"');\ndo\n kubectl taint node ${node} node-role.kubernetes.io/controlplane:NoSchedule-\n kubectl taint node ${node} node-role.kubernetes.io/etcd:NoExecute-\ndone\n",
"_uses_shell": true,
"argv": null,
"chdir": null,
"creates": null,
"executable": "/bin/bash",
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true
}
}
|
msg
|
|
rc
|
|
start
|
2023-10-23 16:23:59.665153
|
stderr
|
E1023 16:23:59.761616 3282 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1023 16:23:59.766146 3282 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1023 16:23:59.773956 3282 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1023 16:23:59.777943 3282 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1023 16:23:59.873837 3320 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1023 16:23:59.875372 3320 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1023 16:23:59.879284 3320 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1023 16:23:59.886100 3320 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1023 16:23:59.889135 3320 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1023 16:24:00.004917 3358 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1023 16:24:00.010340 3358 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1023 16:24:00.012822 3358 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1023 16:24:00.018093 3358 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1023 16:24:00.021811 3358 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
|
stderr_lines
|
[
"E1023 16:23:59.761616 3282 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request",
"E1023 16:23:59.766146 3282 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request",
"E1023 16:23:59.773956 3282 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request",
"E1023 16:23:59.777943 3282 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request",
"E1023 16:23:59.873837 3320 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request",
"E1023 16:23:59.875372 3320 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request",
"E1023 16:23:59.879284 3320 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request",
"E1023 16:23:59.886100 3320 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request",
"E1023 16:23:59.889135 3320 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request",
"E1023 16:24:00.004917 3358 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request",
"E1023 16:24:00.010340 3358 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request",
"E1023 16:24:00.012822 3358 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request",
"E1023 16:24:00.018093 3358 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request",
"E1023 16:24:00.021811 3358 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request"
]
|
stdout
|
node/controller-01 untainted
node/controller-01 untainted
|
stdout_lines
|
[
"node/controller-01 untainted",
"node/controller-01 untainted"
]
|