🐳 Easily manage Kubernetes clusters (Beta).
Make Kubernetes usage more convenient and faster 🧪 In development
- English | 简体中文
- View Docker and Kubernetes information via the console
- Supports multiple databases (SQLite, MySQL)
- Manipulate Kubernetes cluster resources using YAML files via various requests
- Query, create, and delete Docker containers
JWT_SECRET_KEY=JWT_TOKEN
must be set, otherwise the web service will not work properly.
Most of the software's features are provided by the API. The best way is to check the API documentation: https://documenter.getpostman.com/view/34220703/2sA3e5d86S
- Enter the project directory and open Makefile
- Edit variables 1-6 to your needs. Generally, you only need to change GOOS (your system) and GOARCH (system architecture)
- Execute
make
in the current directory to generate the binary file - Grant executable permissions:
sudo chmod +x GoToKube
- Enter the project directory and execute
go build
- Obtain the
GoToKube
binary file and grant executable permissions:sudo chmod +x GoToKube
Build using Docker
- Build using the Dockerfile in the project:
docker build -t gotokube:dev .
- It is recommended to start the container using Docker Compose:
docker-compose up -d
- The Docker sock file must be mapped to the container, otherwise the software cannot be started
volumes: - /var/run/docker.sock:/var/run/docker.sock
The configuration file will be generated in the same directory as the program after the first run, and can be modified later. Case is insensitive
[auth]
pass = 'gotokube' # Not used yet
[database]
addr = '' # Database address
name = '' # Database name
password = '' # Database password
path = 'data.db' # Sqlite Database file path, defaults to data.db in the current directory
type = 'sqlite' # Database type, defaults to sqlite, currently supports sqlite and mysql
user = '' # Database username
[kube]
configpath = '' # Kubernetes configuration file path, defaults to $HOME/.kube/config
enable = true # Whether to enable Kubernetes function
[log]
dir = '' # Log file storage path
[web]
enable = true # Whether to enable web function
listeningaddr = ':8080' # Web service listening address
Similar to the configuration file, use
configuration unit
_configuration item
=configuration value
to set environment variables (variable values must be uppercase), which will override the values in the configuration file
Example:
- LOG_DIR='/var/log/gotokub' Log file storage path
- WEB_LISTENINGADDR=":9090" Web service listening addressw