add zh pages

This commit is contained in:
Karen Bradshaw
2020-06-01 09:23:39 -04:00
parent 21fd0a12f9
commit 4b35d4d401
303 changed files with 2764 additions and 2439 deletions
@@ -3,18 +3,18 @@ approvers:
- mikedanese
- thockin
title: 容器环境变量
content_template: templates/concept
content_type: concept
---
{{% capture overview %}}
<!-- overview -->
本文介绍容器环境中对容器可用的资源。
{{% /capture %}}
{{< toc >}}
{{% capture body %}}
<!-- body -->
## 容器环境
@@ -50,13 +50,14 @@ FOO_SERVICE_PORT=<服务所启用的端口>
服务具有专用 IP 地址,如果启用了 [DNS 插件](http://releases.k8s.io/{{< param "githubbranch" >}}/cluster/addons/dns/),还可以在容器中通过 DNS 进行访问。
{{% /capture %}}
{{% capture whatsnext %}}
## {{% heading "whatsnext" %}}
* 查看[容器生命周期挂钩(hooks](/docs/concepts/containers/container-lifecycle-hooks/)了解更多。
* 获取[为容器生命周期事件附加处理程序](/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/)的实践经验。
{{% /capture %}}
@@ -1,20 +1,20 @@
---
title: 容器环境
content_template: templates/concept
content_type: concept
weight: 20
---
{{% capture overview %}}
<!-- overview -->
<!--
This page describes the resources available to Containers in the Container environment.
-->
本页描述了在容器环境里容器可用的资源。
{{% /capture %}}
{{% capture body %}}
<!-- body -->
<!--
## Container environment
@@ -81,9 +81,10 @@ if [DNS addon](http://releases.k8s.io/{{< param "githubbranch" >}}/cluster/addon
-->
Service 具有专用的 IP 地址。如果启用了 [DNS插件](http://releases.k8s.io/{{< param "githubbranch" >}}/cluster/addons/dns/),就可以在容器中通过 DNS 来访问。
{{% /capture %}}
{{% capture whatsnext %}}
## {{% heading "whatsnext" %}}
<!--
* Learn more about [Container lifecycle hooks](/docs/concepts/containers/container-lifecycle-hooks/).
@@ -93,4 +94,4 @@ Service 具有专用的 IP 地址。如果启用了 [DNS插件](http://releases.
* 学习更多有关[容器生命周期钩子](/docs/concepts/containers/container-lifecycle-hooks/)的知识。
* 动手获得经验[将处理程序附加到容器生命周期事件](/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/)。
{{% /capture %}}
@@ -3,7 +3,7 @@ reviewers:
- mikedanese
- thockin
title: 容器生命周期钩子
content_template: templates/concept
content_type: concept
weight: 30
---
@@ -12,12 +12,12 @@ reviewers:
- mikedanese
- thockin
title: Container Lifecycle Hooks
content_template: templates/concept
content_type: concept
weight: 30
-->
{{% capture overview %}}
<!-- overview -->
<!--
This page describes how kubelet managed Containers can use the Container lifecycle hook framework
@@ -25,10 +25,10 @@ to run code triggered by events during their management lifecycle.
-->
这个页面描述了 kubelet 管理的容器如何使用容器生命周期钩子框架来运行在其管理生命周期中由事件触发的代码。
{{% /capture %}}
{{% capture body %}}
<!-- body -->
<!--
## Overview
@@ -214,9 +214,10 @@ Events:
1m 22s 2 {kubelet gke-test-cluster-default-pool-a07e5d30-siqd} spec.containers{main} Warning FailedPostStartHook
```
{{% /capture %}}
{{% capture whatsnext %}}
## {{% heading "whatsnext" %}}
<!--
* Learn more about the [Container environment](/docs/concepts/containers/container-environment-variables/).
@@ -227,4 +228,4 @@ Events:
* 了解更多关于[容器环境](/docs/concepts/containers/container-environment-variables/)。
* 获取实践经验[将处理程序附加到容器生命周期事件](/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/)。
{{% /capture %}}
@@ -1,6 +1,6 @@
---
title: 镜像
content_template: templates/concept
content_type: concept
weight: 10
---
<!--
@@ -9,12 +9,12 @@ reviewers:
- erictune
- thockin
title: Images
content_template: templates/concept
content_type: concept
weight: 10
---
-->
{{% capture overview %}}
<!-- overview -->
<!--
You create your Docker image and push it to a registry before referring to it in a Kubernetes pod.
@@ -25,10 +25,10 @@ The `image` property of a container supports the same syntax as the `docker` com
容器的 `image` 属性支持与 `docker` 命令相同的语法,包括私有仓库和标签。
{{% /capture %}}
{{% capture body %}}
<!-- body -->
<!--
## Updating Images
@@ -663,7 +663,7 @@ common use cases and suggested solutions.
- 为每个租户获取仓库凭证,放置在 secret 中,并发布到每个租户的命名空间下。
- 租户将 secret 增加到每个命名空间下的 imagePullSecrets 中。
{{% /capture %}}
<!--
If you need access to multiple registries, you can create one secret for each registry.
@@ -1,10 +1,10 @@
---
title: 容器概述
content_template: templates/concept
content_type: concept
weight: 1
---
{{% capture overview %}}
<!-- overview -->
<!--
Containers are a technnology for packaging the (compiled) code for an
@@ -20,10 +20,10 @@ This makes deployment easier in different cloud or OS environments.
容器将应用程序和底层主机架构解耦,这使得在不同的云或OS环境中部署应用更加容易。
{{% /capture %}}
{{% capture body %}}
<!-- body -->
<!--
## Container images
@@ -50,12 +50,13 @@ the change, then recreate the container to start from the updated image.
{{< glossary_definition term_id="container-runtime" length="all" >}}
{{% /capture %}}
{{% capture whatsnext %}}
## {{% heading "whatsnext" %}}
<!--
* Read about [container images](/docs/concepts/containers/images/)
* Read about [Pods](/docs/concepts/workloads/pods/)
-->
* 阅读有关[容器镜像](/docs/concepts/containers/images/)
* 阅读有关 [Pods](/docs/concepts/workloads/pods/)
{{% /capture %}}
@@ -3,11 +3,11 @@ reviewers:
- tallclair
- dchen1107
title: 容器运行时类(Runtime Class)
content_template: templates/concept
content_type: concept
weight: 20
---
{{% capture overview %}}
<!-- overview -->
{{< feature-state for_k8s_version="v1.14" state="beta" >}}
@@ -22,10 +22,10 @@ configuration is used to run a Pod's containers.
-->
RuntimeClass 是一个用于选择容器运行时配置的特性,容器运行时配置用于运行 Pod 中的容器。
{{% /capture %}}
{{% capture body %}}
<!-- body -->
<!--
## Motivation
@@ -307,8 +307,9 @@ are accounted for in Kubernetes.
-->
Pod 开销通过 RuntimeClass 的 `overhead` 字段定义。通过使用这些字段,你可以指定使用该 RuntimeClass 运行 Pod 时的开销并确保 Kubernetes 将这些开销计算在内。
{{% /capture %}}
{{% capture whatsnext %}}
## {{% heading "whatsnext" %}}
<!--
- [RuntimeClass Design](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/runtime-class.md)
@@ -321,4 +322,4 @@ Pod 开销通过 RuntimeClass 的 `overhead` 字段定义。通过使用这些
- 阅读关于 [Pod 开销](/docs/concepts/configuration/pod-overhead/) 的概念
- [PodOverhead 特性设计](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/20190226-pod-overhead.md)
{{% /capture %}}