kube-go / pod-deployer

A simple pod-deployer app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

index page

Motivation for the project

The motivation for creating this project is to get familiarize with 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

git clone https://github.com/kube-go/pod-deployer.git
cd pod-deployer
go build

Execute

./pod-deployer

Docker way

DATE=$(date +"%Y%m%d")
docker build . -t pod-deployer:$DATE

Run as docker container

Note: Mounted kube context directory as volume in container

docker run -p 8080:8080 -v $HOME/.kube:/home/deployer/.kube pod-deployer:$DATE

TODO

  • Provide exact reason for failure in UI

  • Option to view pod status, description, logs in UI

  • Include binary

References

About

A simple pod-deployer app

License:Apache License 2.0


Languages

Language:HTML 55.7%Language:Go 37.2%Language:Dockerfile 5.3%Language:Makefile 1.9%