File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 2
2
set -e
3
3
4
4
kubectl=kubectl
5
- version=1.5.4
5
+ version=1.5.5
6
6
generator=" "
7
7
node=" "
8
8
nodefaultctx=0
@@ -95,6 +95,8 @@ pod="nsenter-$(env LC_ALL=C tr -dc a-z0-9 </dev/urandom | head -c 6)"
95
95
# Check the node
96
96
$kubectl get node " $node " > /dev/null || exit 1
97
97
98
+ container_cpu=" ${KUBECTL_NODE_SHELL_POD_CPU:- 100m} "
99
+ container_memory=" ${KUBECTL_NODE_SHELL_POD_MEMORY:- 256Mi} "
98
100
overrides=" $(
99
101
cat << EOT
100
102
{
@@ -112,7 +114,17 @@ overrides="$(
112
114
"stdin": true,
113
115
"stdinOnce": true,
114
116
"tty": $tty ,
115
- "command": $cmd
117
+ "command": $cmd ,
118
+ "resources": {
119
+ "limits": {
120
+ "cpu": "${container_cpu} ",
121
+ "memory": "${container_memory} "
122
+ },
123
+ "requests": {
124
+ "cpu": "${container_cpu} ",
125
+ "memory": "${container_memory} "
126
+ }
127
+ }
116
128
}
117
129
],
118
130
"tolerations": [
You can’t perform that action at this time.
0 commit comments