tars2k8s-cli
v1.1.2
Published
CLI tool for Tars to Kubernetes deployment automation
Maintainers
Readme
@tengits/tars2k8s
CLI tool for automating Tars to Kubernetes deployment workflows.
Installation
npm install -g @tengits/tars2k8sUsage
Initialize Configuration
tars2k8s initThis creates .tars2k8s/deploy-config.yaml in your project.
Generate Tars Configuration
tars2k8s conf
tars2k8s conf --module <module-name>Generate Dockerfiles
tars2k8s docker
tars2k8s docker --module <module-name>Build Docker Images
tars2k8s build --version v1.0.0
tars2k8s build --version v1.0.0 --module <module-name> --pushGenerate Helm Charts
tars2k8s helm
tars2k8s helm --module <module-name>Configuration
Edit .tars2k8s/deploy-config.yaml:
project:
tarsAppName: MyApp
k8sAppName: my-app
docker:
registry:
url: docker.io
username: user
token: token
harborNameSpace: mynamespace
imagePrefix: prefix
autoLogin: true
services:
- moduleName: my-service
serverName: MyServer
servants:
- name: MyObj
port: 10001
protocol: tars
build:
- commonModule: commonFeatures
- ✅ Auto-detect Java/Node.js projects
- ✅ Generate Tars configuration files
- ✅ Generate Dockerfiles
- ✅ Build and push Docker images
- ✅ Generate Helm charts with best practices
- ✅ Multi-port support
- ✅ Health probes
- ✅ Resource limits
- ✅ Persistent volumes
License
ISC
