Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabiand/kubectl-plugin-pvc
A simple kubectl binary plugin for PVC operations
https://github.com/fabiand/kubectl-plugin-pvc
kubectl-plugins kubernetes pvc
Last synced: 7 days ago
JSON representation
A simple kubectl binary plugin for PVC operations
- Host: GitHub
- URL: https://github.com/fabiand/kubectl-plugin-pvc
- Owner: fabiand
- License: apache-2.0
- Created: 2018-03-12T11:43:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-16T19:24:04.000Z (about 6 years ago)
- Last Synced: 2024-08-02T06:13:00.955Z (3 months ago)
- Topics: kubectl-plugins, kubernetes, pvc
- Language: Shell
- Size: 29.3 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kubectl-plugins - kubectl-plugin-pvc
README
[![Build Status](https://travis-ci.org/fabiand/kubectl-plugin-pvc.svg?branch=master)](https://travis-ci.org/fabiand/kubectl-plugin-pvc)
A simple [kubectl binary](https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/)
(binary, ha!) plugin to create and optionally populate PVCs.## Installation
Without cloning the repo, on your client:
```bash
curl -L https://github.com/fabiand/kubectl-plugin-pvc/raw/master/install.sh | bash
```Or: After cloning the repo, On your client:
```bash
$ bash install.sh
```## Usage
### Create and (optionally) upload
```bash
$ kubectl plugin pvc create my-data 10Gi README.md README.md
```In order to create a new PVC called `fedora` with a size of _10Gi_ and copy the
local `README.md` into a file called `README.md` on the new PVC.### Upload
```bash
$ kubectl plugin pvc cp my-data README.md README.md
```### Cat contents
```bash
$ kubectl plugin pvc cat my-data README.md
```