Skip to content

Commit 1ea5f5e

Browse files
authored
fixed demo deployment create command
when use `kubectl run source-ip-app --image=k8s.gcr.io/echoserver:1.4` . it will be create a pod, the output is: `pod/source-ip-app created`, but the svc will find `deployment` when use `kubectl expose deployment source-ip-app --name=clusterip --port=80 --target-port=8080`
1 parent cc7439c commit 1ea5f5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/zh/docs/tutorials/services/source-ip.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Kubernetes 集群中运行的应用通过 Service 抽象来互相查找、通信
3535
你必须拥有一个正常工作的 Kubernetes 1.5 集群来运行此文档中的示例。该示例使用一个简单的 nginx webserver,通过一个HTTP消息头返回它接收到请求的源IP。你可以像下面这样创建它:
3636

3737
```console
38-
kubectl run source-ip-app --image=k8s.gcr.io/echoserver:1.4
38+
kubectl create deployment source-ip-app --image=k8s.gcr.io/echoserver:1.4
3939
```
4040
输出结果为
4141
```

0 commit comments

Comments
 (0)