Skip to content

Add kubectl create pv/c function #1849

@xelab04

Description

@xelab04

What would you like to be added

Right now, I can create a deployment, service, ingress, secret, configmap, and many more resources directly from the kubectl command line tool. The one main missing one is creating a persistent volume (claim). Working with Kubernetes often, I use kubectl create frequently, particularly with --dry-run=client -oyaml, yet for PV(C)s, I have to either head to the Kubernetes docs or copy an existing yaml file from a previous project.

I would like an option to create a pv/pvc from the kubectl tool.

Why is this needed
This feature makes creating an essential Kubernetes resource easier and more intuitive, without needing to refer to docs or other references.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions