これらのデプロイメントをカスタム名で呼びたい場合は、デプロイメントとサービスオブジェクトの両方でmetadata.name変数の名前を変更します。例えば、my-nginxと呼びたい場合は、以下の行を変更します：

metadata: name: nginx-deployment

を

metadata: name: my-nginx-deployment

へ

そして

metadata: name: nginx-service

を

metadata: name: my-nginx-service

へ
If you wanted to call these deployments a custom name, you would rename the metadata.name variable in both the Deployment and the Service objects. For example, if you wanted to call them my-nginx, you would change the following lines:

metadata: name: nginx-deployment

to

metadata: name: my-nginx-deployment

and

metadata: name: nginx-service

to

metadata: name: my-nginx-service