支持多集群、多命名空间的helm部署http接口
git clone https://github.com/OojaxoO/helm-api.git
cd helm-api
make
make install
vim /etc/profile
export GO111MODULE=on
GOPROXY=https://goproxy.io
export GOPROXY
source /etc/profile
vim /opt/helm-api/conf/app.ini
[database]
Type = mysql
User = root
Password = test123
Host = 127.0.0.1:3306
Name = nvwa
TablePrefix = kube_
[http]
Port = 10000
cd /opt/helm-api/ ./helm-api
-
helm list -n namespace
GET /charts/:cluster/:namespace/ -
helm get all -n namespace name
GET /charts/:cluster/:namespace/:name -
helm upgrade --install name chart -n namespace
POST /charts/:cluster/:namespace/:name?chart=:chart -
helm delete name -n namespace
DELETE /charts/:cluster/:namespace/:name