Skip to content

Commit

Permalink
fix cn file for netlify preview
Browse files Browse the repository at this point in the history
  • Loading branch information
chenopis committed Sep 18, 2017
1 parent 91cc407 commit 1a23f29
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions cn/docs/tasks/inject-data-application/commands.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Pod
metadata:
name: command-demo
labels:
purpose: demonstrate-command
spec:
containers:
- name: command-demo-container
image: debian
command: ["printenv"]
args: ["HOSTNAME", "KUBERNETES_PORT"]
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ title: 为容器设置启动时要执行的命令及其入参

本示例中,将创建一个只包含单个容器的Pod。在Pod配置文件中设置了一个命令与两个入参:

{% include code.html language="yaml" file="commands.yaml" ghlink="/docs/tasks/inject-data-application/commands.yaml" %}
{% include code.html language="yaml" file="commands.yaml" ghlink="/cn/docs/tasks/inject-data-application/commands.yaml" %}

1. 基于YAML文件创建一个Pod:

Expand Down

0 comments on commit 1a23f29

Please sign in to comment.