Share via


容器程式碼套件屬性

描述容器及其執行時間屬性。

屬性

名稱 類型 必要
name string
image 字串 Yes
imageRegistryCredential ImageRegistryCredential
entryPoint 字串 No
commands 字串陣列 No
environmentVariables EnvironmentVariable的陣列 No
settings 設定的陣列 No
labels ContainerLabel的陣列 No
endpoints EndpointProperties的陣列 No
resources ResourceRequirements Yes
volumeRefs VolumeReference的陣列 No
volumes ApplicationScopedVolume 的陣列 No
diagnostics DiagnosticsRef No
reliableCollectionsRefs ReliableCollectionsRef的陣列 No
instanceView ContainerInstanceView No
livenessProbe 探查陣列 No
readinessProbe 探查陣列 No

name

類型:字串
必要:是

程式碼套件的名稱。


image

類型:字串
必要:是

要使用的容器映射。


imageRegistryCredential

類型ImageRegistryCredential
必要:否

映射登錄認證。


entryPoint

類型:字串
必要:否

覆寫容器中預設進入點。


commands

類型:字串陣列
必要:否

要以 exec 形式在容器內執行的命令陣列。


environmentVariables

類型EnvironmentVariable的陣列
必要:否

要在此容器中設定的環境變數


settings

類型設定的陣列
必要:否

要在此容器中設定的設定。 設定檔路徑可以從環境變數 「Fabric_SettingPath」 擷取。 Windows 容器的路徑是 「C:\secrets」。 Linux 容器的路徑為 「/var/secrets」。


labels

類型ContainerLabel的陣列
必要:否

要在此容器中設定的標籤。


endpoints

類型EndpointProperties的陣列
必要:否

此容器所公開的端點。


resources

類型ResourceRequirements
必要:是

此容器所需的資源。


volumeRefs

類型VolumeReference的陣列
必要:否

要附加至容器的磁片區。 這些磁片區的存留期與應用程式的存留期無關。


volumes

類型ApplicationScopedVolume 的陣列
必要:否

要附加至容器的磁片區。 這些磁片區的存留期範圍限定于應用程式的存留期。


diagnostics

類型DiagnosticsRef
必要:否

DiagnosticsDescription 中接收的參考。


reliableCollectionsRefs

類型ReliableCollectionsRef 的陣列
必要:否

這個特定程式碼套件所使用的 ReliableCollection 資源清單。 如需詳細資訊,請參閱 ReliableCollectionsRef。


instanceView

類型ContainerInstanceView
必要:否

容器實例的執行時間資訊。


livenessProbe

類型探查陣列
必要:否

程式碼封裝的即時性探查陣列。 它會決定何時重新開機程式碼封裝。


readinessProbe

類型探查陣列
必要:否

程式碼封裝的整備探查陣列。 它會決定何時解除發佈端點。