3.2. 設定スニペットまたは配列の例
リストまたは配列はマージされず、上書きされます。たとえば、最初のスニペットの後に読み取られる同じフィールドの追加スニペットを作成することで、SAN または SAN のリストを置き換えることができます。
MicroShift 設定ディレクトリーの内容
-
/etc/microshift/config.yaml.default
または/etc/microshift/config.yaml
MicroShift 設定スニペットのディレクトリー内容の例
-
/etc/microshift/config.d/10-san.yaml
/etc/microshift/config.d/20-san.yaml
10-san.yaml
スニペットの例apiServer: subjectAltNames: - host1 - host2
apiServer: subjectAltNames: - host1 - host2
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 20-san.yaml
スニペットの例apiServer: subjectAltNames: - hostZ
apiServer: subjectAltNames: - hostZ
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 設定結果の例
apiServer: subjectAltNames: - hostZ
apiServer: subjectAltNames: - hostZ
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
既存のリストに値を追加する場合は、その値を既存のスニペットに追加できます。たとえば、既存の SAN リストに hostZ
を追加するには、新しいスニペットを作成するのではなく、既存のスニペットを編集します。
10-san.yaml
スニペットの例
apiServer: subjectAltNames: - host1 - host2 - hostZ
apiServer:
subjectAltNames:
- host1
- host2
- hostZ
設定結果の例
apiServer: subjectAltNames: - host1 - host2 - hostZ
apiServer:
subjectAltNames:
- host1
- host2
- hostZ