Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rizalmf/kubepull
- Owner: rizalmf
- License: mit
- Created: 2023-11-24T10:43:37.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-07T08:23:54.000Z (about 1 year ago)
- Last Synced: 2024-11-11T05:16:09.682Z (3 months ago)
- Language: Java
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-ENG.md
- License: LICENSE
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 "'
```