Skip to content

Unable to use exec_as with resource quotas #20

@glensc

Description

@glensc

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions