Translate i18n/zh/docusaurus-plugin-content-docs/current/developers/references/component-types/worker.md

This commit is contained in:
chenggui 2021-04-26 17:49:57 +08:00
parent 5897d9d4cf
commit aa31a03996
1 changed files with 8 additions and 8 deletions

View File

@ -2,13 +2,13 @@
title: Worker
---
## Description
## 描述
Describes long-running, scalable, containerized services that running at backend. They do NOT have network endpoint to receive external network traffic.
描述在后台长期运行,可拓展的容器化服务。它们不需要网络端点来接收外部流量。
## Specification
## 规格
List of all configuration options for a `Worker` workload type.
列出 `Worker` 类型 workload 的所有配置项。
```yaml
name: my-app-name
@ -20,9 +20,9 @@ services:
cmd: ["node", "server.js"]
```
## Properties
## 属性
Name | Description | Type | Required | Default
名称 | 描述 | 类型 | 是否必须 | 默认值
------------ | ------------- | ------------- | ------------- | -------------
cmd | Commands to run in the container | []string | false |
image | Which image would you like to use for your service | string | true |
cmd | 容器中运行的命令 | []string | 否 |
image | 你的服务使用的镜像 | string | 是 |