https://github.com/kube-go/pod-deployer
A simple pod-deployer app
https://github.com/kube-go/pod-deployer
client-go kubernetes pod slashpai-hack-hustle
Last synced: 2 months ago
JSON representation
A simple pod-deployer app
- Host: GitHub
- URL: https://github.com/kube-go/pod-deployer
- Owner: kube-go
- License: apache-2.0
- Created: 2021-05-29T07:01:57.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-11T18:36:44.000Z (over 1 year ago)
- Last Synced: 2025-02-06T21:45:21.105Z (4 months ago)
- Topics: client-go, kubernetes, pod, slashpai-hack-hustle
- Language: HTML
- Homepage:
- Size: 137 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pod-Deployer
Simple app to deploy a pod to kubernetes cluster from getting user inputs through UI. It uses kubeconfig from the machine it is accessed.

## Motivation for the project
The motivation for creating this project is to get familiarize with [client-go](https://github.com/kubernetes/client-go) and to learn go web programming.
## Usage
#### Pre-requisite
- Running kubernetes cluster and kube config available in the machine
### Build Locally
- Since pre-built binary is not included you need to build yourself hence you need to have go `1.16+` installed in your system
Build the application
```go
git clone https://github.com/kube-go/pod-deployer.git
cd pod-deployer
go build
```#### Execute
```go
./pod-deployer
```### Docker way
```go
DATE=$(date +"%Y%m%d")
docker build . -t pod-deployer:$DATE
```#### Run as docker container
*Note:* Mounted kube context directory as volume in container
```go
docker run -p 8080:8080 -v $HOME/.kube:/home/deployer/.kube pod-deployer:$DATE
```## TODO
- [x] Provide exact reason for failure in UI
- [ ] Option to view pod status, description, logs in UI
- [ ] Include binary
## References
- [client-go](https://github.com/kubernetes/client-go)
- [gowebexamples](https://gowebexamples.com/)