-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Description
There's no visible way to set resource quotas when creating the temporary pod. Please add a way to specify limits and requests.
$ kubectl exec-as -n dlb dlb-node-review-lv-master-mqe0vx-77fc8f6967-cvprn
Connecting...
Pod: dlb-node-review-lv-master-mqe0vx-77fc8f6967-cvprn
Namespace: dlb
User: root
Container: NONE
Command: /bin/sh
Error from server (Forbidden): pods "glen-1" is forbidden: failed quota: quota-dlb: must specify limits.cpu,limits.memory,requests.cpu,requests.memory
$ kubectl exec-as -n dlb --resources=limits.cpu=100m dlb-node-review-lv-master-mqe0vx-77fc8f6967-cvprn
/Users/glen/.krew/bin/kubectl-exec_as: illegal option -- -
Usage: kubectl exec-as [OPTIONS] <pod name> [-- <commands...>]
Run a command in a running container
Options:
-h Show usage
-d Enable debug mode. Print a trace of each commands
-n If present, the namespace scope for this CLI request
-u Username or UID (format: <name|uid>[:<group|gid>])
-c Container name. If omitted, the first container in the pod will be chosen
Metadata
Metadata
Assignees
Labels
No labels