@01/kube-tools 中文文档教程
Kubernetes toolbox ☸ ️
收费箱包含部署 kubernetes 服务的实用程序
Commands
kube-deploy
command
kube-deploy
将在 --config
参数下获取一个 yml 配置文件,并将您的服务部署到默认的 kubernetes 集群
config file
配置文件可以写入yaml
文件。 它支持使用 sls-yaml 的无服务器框架样式扩展
Sample config
# common.yml
version: 1
name: awesome-service
# context: ${global:env}-context # Optional
image.tag: ${env:GIT_COMMIT_SHA1}
values: ../helm/values-${global:env}.yml
chart: ../helm/chart
# prod.yml
env: prod
app: ${file(./common.yml)}
# stage.yml
env: stage
app: ${file(./common.yml)}
Deployment
kube-deploy --config=.kube/config/prod.yml
Options
Argument | Description |
---|---|
--context | Set kubernetes context |
--name | Service name |
--chart | Chart path |
--values | Values path |
--dryRun | Simulate deployment |
--image.tag | Docker image tag |
Kubernetes toolbox ???? ☸ ️
The tollbox contains utilies to deploy kubernetes services
Commands
kube-deploy
command
kube-deploy
will take a yml configuration file under --config
argument and deploy your service to default kubernetes cluster
config file
Config file can be written in yaml
file. it support serverless framework style extensions using sls-yaml
Sample config
# common.yml
version: 1
name: awesome-service
# context: ${global:env}-context # Optional
image.tag: ${env:GIT_COMMIT_SHA1}
values: ../helm/values-${global:env}.yml
chart: ../helm/chart
# prod.yml
env: prod
app: ${file(./common.yml)}
# stage.yml
env: stage
app: ${file(./common.yml)}
Deployment
kube-deploy --config=.kube/config/prod.yml
Options
Argument | Description |
---|---|
--context | Set kubernetes context |
--name | Service name |
--chart | Chart path |
--values | Values path |
--dryRun | Simulate deployment |
--image.tag | Docker image tag |
更多