Update service-access-application-cluster.md

This commit is contained in:
Kento Yagisawa 2020-06-05 13:15:44 +09:00
parent 77c827359d
commit 451bbf4568
1 changed files with 6 additions and 1 deletions

View File

@ -32,9 +32,14 @@ weight: 60
## 2つのPodから成るアプリケーションのServiceを作成 ## 2つのPodから成るアプリケーションのServiceを作成
アプリケーションDeploymentの設定ファイルは以下の通りです:
{{< codenew file="service/access/hello-application.yaml" >}}
1. クラスタでHello Worldアプリケーションを稼働させます: 1. クラスタでHello Worldアプリケーションを稼働させます:
上記のファイルを使用し、アプリケーションDeploymentを作成します:
```shell ```shell
kubectl run hello-world --replicas=2 --labels="run=load-balancer-example" --image=gcr.io/google-samples/node-hello:1.0 --port=8080 kubectl apply -f https://k8s.io/examples/service/access/hello-application.yaml
``` ```
このコマンドは このコマンドは
[Deployment](/ja/docs/concepts/workloads/controllers/deployment/) [Deployment](/ja/docs/concepts/workloads/controllers/deployment/)