Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rizalmf/kubepull

Pull data from Kubernetes Cluster existing and write to your local machine
https://github.com/rizalmf/kubepull

Last synced: 18 days ago
JSON representation

Pull data from Kubernetes Cluster existing and write to your local machine

Awesome Lists containing this project

README

        

# KubePull
Pull data from Kubernetes Cluster existing and write to your local machine

## Note
1. Please make sure `kubectl` command already installed in your local machine
2. JRE 11 already installed in your local machine

## Usage

### Pull target File
This app will read *file.yaml* on key ***kind, metadata.name, metadata.namespace*** and write existing file based on those specification
```shell
java -jar KubePull.jar -c -f
```

### In Case Multi Target FIle
```shell
java -jar KubePull.jar -c -f -f -f
```

### Pull All Yaml File from Folder
```shell
java -jar KubePull.jar -c -af
```

### Pull And Create New File
This Command will create new file in your local machine
```shell
# will create 'kind-metadata-name.yaml'
java -jar KubePull.jar -c -n
```

## Suggestion
Make alias on specific kubernetes-context to help you boost your syntax
```shell
path-yaml-file> alias1 -f myFile.yml
```
### Windows (PowerShell)
```shell
# Microsoft.PowerShell_profile.ps1
Function functionContext1 { return java -jar " $args }
Set-Alias -Name alias1 -Value functionContext1
```
### Linux (Debian/Ubuntu)
```shell
# .bashrc
alias alias1='java -jar "'
```