We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1b05c6 commit 0af3f62Copy full SHA for 0af3f62
kubectl-node_shell
@@ -95,6 +95,8 @@ pod="nsenter-$(env LC_ALL=C tr -dc a-z0-9 </dev/urandom | head -c 6)"
95
# Check the node
96
$kubectl get node "$node" >/dev/null || exit 1
97
98
+container_cpu="${KUBECTL_NODE_SHELL_POD_CPU:-100m}"
99
+container_memory="${KUBECTL_NODE_SHELL_POD_MEMORY:-256Mi}"
100
overrides="$(
101
cat <<EOT
102
{
@@ -112,7 +114,17 @@ overrides="$(
112
114
"stdin": true,
113
115
"stdinOnce": true,
116
"tty": $tty,
- "command": $cmd
117
+ "command": $cmd,
118
+ "resources": {
119
+ "limits": {
120
+ "cpu": "${container_cpu}",
121
+ "memory": "${container_memory}"
122
+ },
123
+ "requests": {
124
125
126
+ }
127
128
}
129
],
130
"tolerations": [
0 commit comments