LoginSignup
0
0

More than 1 year has passed since last update.

【Kubernetes】2つ以上のyamlファイルを1つのファイルにまとめる no.12

Last updated at Posted at 2021-07-26

名称未設定のデザイン (12).png

KubernetesのdeploymentオブジェクトとServiceオブジェクトのファイルを2つのファイルに分けて書いたが、1つのファイルにまとめることもできる。

その時は、3つのダッシュ(---) で区切るだけ。

ベストプラクティスでは、

service.yamlを最初に書き、---で区切ってからdeployment.yamlを書く

2021-07-26_16-12-28.png

0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0