File tree Expand file tree Collapse file tree 3 files changed +1
-14
lines changed
concepts/workloads/controllers Expand file tree Collapse file tree 3 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -969,7 +969,7 @@ Deploymentのセレクターに一致するラベルを持つPodを直接作成
969
969
970
970
# ### Deploymentのローリングアップデート
971
971
972
- ` .spec.strategy.type==RollingUpdate` と指定されているとき、Deploymentは[ローリングアップデート](/docs/tasks/run-application/rolling-update-replication-controller/)によりPodを更新します 。ローリングアップデートの処理をコントロールするために` maxUnavailable` と` maxSurge` を指定できます。
972
+ ` .spec.strategy.type==RollingUpdate` と指定されているとき、DeploymentはローリングアップデートによりPodを更新します 。ローリングアップデートの処理をコントロールするために` maxUnavailable` と` maxSurge` を指定できます。
973
973
974
974
# #### maxUnavailable
975
975
@@ -1008,8 +1008,3 @@ Deploymentのリビジョン履歴は、Deploymentが管理するReplicaSetに
1008
1008
# ## paused
1009
1009
1010
1010
` .spec.paused` はオプションのboolean値で、Deploymentの一時停止と再開のための値です。一時停止されているものと、そうでないものとの違いは、一時停止されているDeploymentはPodTemplateSpecのいかなる変更があってもロールアウトがトリガーされないことです。デフォルトではDeploymentは一時停止していない状態で作成されます。
1011
-
1012
- # # Deploymentの代替案
1013
- # ## kubectl rolling-update
1014
-
1015
- [` kubectl rolling-update` ](/docs/reference/generated/kubectl/kubectl-commands#rolling-update)によって、同様の形式でPodとReplicationControllerを更新できます。しかしDeploymentの使用が推奨されます。なぜならDeploymentの作成は宣言的であり、ローリングアップデートが更新された後に過去のリビジョンにロールバックできるなど、いくつかの追加機能があるためです。
Original file line number Diff line number Diff line change @@ -208,8 +208,6 @@ kubectl diff -f ./my-manifest.yaml
208
208
209
209
## リソースのアップデート
210
210
211
- version 1.11で` rolling-update ` は廃止されました、代わりに` rollout ` コマンドをお使いください(詳しくはこちらをご覧ください [ CHANGELOG-1.11.md] ( https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.11.md ) )。
212
-
213
211
``` bash
214
212
kubectl set image deployment/frontend www=image:v2 # frontend Deploymentのwwwコンテナイメージをv2にローリングアップデートします
215
213
kubectl rollout history deployment/frontend # frontend Deploymentの改訂履歴を確認します
@@ -219,11 +217,6 @@ kubectl rollout status -w deployment/frontend # frontend Depl
219
217
kubectl rollout restart deployment/frontend # frontend Deployment を再起動します
220
218
221
219
222
- # これらのコマンドは1.11から廃止されました
223
- kubectl rolling-update frontend-v1 -f frontend-v2.json # (廃止) frontend-v1 Podをローリングアップデートします
224
- kubectl rolling-update frontend-v1 frontend-v2 --image=image:v2 # (廃止) リソース名とイメージを変更します
225
- kubectl rolling-update frontend --image=image:v2 # (廃止) frontendのイメージを変更します
226
- kubectl rolling-update frontend-v1 frontend-v2 --rollback # (廃止) 現在実行中のローリングアップデートを中止します
227
220
cat pod.json | kubectl replace -f - # 標準入力から渡されたJSONに基づいてPodを置き換えます
228
221
229
222
# リソースを強制的に削除してから再生成し、置き換えます。サービスの停止が発生します
Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ kubectl [command] [TYPE] [NAME] [flags]
88
88
` port-forward ` | ` kubectl port-forward POD [LOCAL_PORT:]REMOTE_PORT [...[LOCAL_PORT_N:]REMOTE_PORT_N] [flags] ` | 1つ以上のリーカルポートを、Podに転送します。
89
89
` proxy ` | ` kubectl proxy [--port=PORT] [--www=static-dir] [--www-prefix=prefix] [--api-prefix=prefix] [flags] ` | Kubernetes APIサーバーへのプロキシーを実行します。
90
90
` replace ` | ` kubectl replace -f FILENAME ` | ファイルや標準出力から、リソースを置き換えます。
91
- ` rolling-update ` | <code >kubectl rolling-update OLD_CONTROLLER_NAME ([ NEW_CONTROLLER_NAME] --image=NEW_CONTAINER_IMAGE | ; -f NEW_CONTROLLER_SPEC) [ flags] </code > | 指定されたReplicationControllerとそのPodを徐々に置き換えることで、ローリングアップデートを実行します。
92
91
` run ` | ` kubectl run NAME --image=image [--env="key=value"] [--port=port] [--replicas=replicas] [--dry-run=server|client|none] [--overrides=inline-json] [flags] ` | 指定したイメージを、クラスタ上で実行します。
93
92
` scale ` | <code >kubectl scale (-f FILENAME | ; TYPE NAME | ; TYPE/NAME) --replicas=COUNT [ --resource-version=version] [ --current-replicas=count] [ flags] </code > | していしたReplicationControllerのサイズを更新します。
94
93
` version ` | ` kubectl version [--client] [flags] ` | クライアントとサーバーで実行中のKubernetesのバージョンを表示します。
You can’t perform that action at this time.
0 commit comments