- JSON representation
- PrivateRegistryAccessConfig
- CertificateAuthorityDomainConfig
- GCPSecretManagerCertificateConfig
- WritableCgroups
- RegistryHostConfig
- HostConfig
- HostCapability
- RegistryHeader
- CertificateConfig
- CertificateConfigPair
ContainerdConfig contains configuration to customize containerd.
| JSON representation |
|---|
{ "privateRegistryAccessConfig": { object ( |
| Fields | |
|---|---|
privateRegistryAccessConfig |
PrivateRegistryAccessConfig is used to configure access configuration for private container registries. |
writableCgroups |
Optional. WritableCgroups defines writable cgroups configuration for the node pool. |
registryHosts[] |
RegistryHostConfig configures containerd registry host configuration. Each registryHosts represents a hosts.toml file. At most 25 registryHosts are allowed. |
PrivateRegistryAccessConfig
PrivateRegistryAccessConfig contains access configuration for private container registries.
| JSON representation |
|---|
{
"enabled": boolean,
"certificateAuthorityDomainConfig": [
{
object ( |
| Fields | |
|---|---|
enabled |
Private registry access is enabled. |
certificateAuthorityDomainConfig[] |
Private registry access configuration. |
CertificateAuthorityDomainConfig
CertificateAuthorityDomainConfig configures one or more fully qualified domain names (FQDN) to a specific certificate.
| JSON representation |
|---|
{ "fqdns": [ string ], // Union field |
| Fields | |
|---|---|
fqdns[] |
List of fully qualified domain names (FQDN). Specifying port is supported. Wildcards are NOT supported. Examples: - my.customdomain.com - 10.0.1.2:5000 |
Union field certificate_config. Certificate access config. The following are supported: - GCPSecretManagerCertificateConfig certificate_config can be only one of the following: |
|
gcpSecretManagerCertificateConfig |
Secret Manager certificate configuration. |
GCPSecretManagerCertificateConfig
GCPSecretManagerCertificateConfig configures a secret from Secret Manager.
| JSON representation |
|---|
{ "secretUri": string } |
| Fields | |
|---|---|
secretUri |
Secret URI, in the form "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION". Version can be fixed (e.g. "2") or "latest" |
WritableCgroups
Defines writable cgroups configuration.
| JSON representation |
|---|
{ "enabled": boolean } |
| Fields | |
|---|---|
enabled |
Optional. Whether writable cgroups is enabled. |
RegistryHostConfig
RegistryHostConfig configures the top-level structure for a single containerd registry server's configuration, which represents one hosts.toml file on the node. It will override the same fqdns in PrivateRegistryAccessConfig.
| JSON representation |
|---|
{
"server": string,
"hosts": [
{
object ( |
| Fields | |
|---|---|
server |
Defines the host name of the registry server, which will be used to create configuration file as /etc/containerd/hosts.d/ |
hosts[] |
HostConfig configures a list of host-specific configurations for the server. Each server can have at most 10 host configurations. |
HostConfig
HostConfig configures the registry host under a given Server.
| JSON representation |
|---|
{ "host": string, "capabilities": [ enum ( |
| Fields | |
|---|---|
host |
Host configures the registry host/mirror. It supports fully qualified domain names (FQDN) and IP addresses: Specifying port is supported. Wildcards are NOT supported. Examples: - my.customdomain.com - 10.0.1.2:5000 |
capabilities[] |
Capabilities represent the capabilities of the registry host, specifying what operations a host is capable of performing. If not set, containerd enables all capabilities by default. |
overridePath |
OverridePath is used to indicate the host's API root endpoint is defined in the URL path rather than by the API specification. This may be used with non-compliant OCI registries which are missing the /v2 prefix. If not set, containerd sets default false. |
header[] |
Header configures the registry host headers. |
ca[] |
CA configures the registry host certificate. |
client[] |
Client configures the registry host client certificate and key. |
dialTimeout |
Specifies the maximum duration allowed for a connection attempt to complete. A shorter timeout helps reduce delays when falling back to the original registry if the mirror is unreachable. Maximum allowed value is 180s. If not set, containerd sets default 30s. The value should be a decimal number of seconds with an A duration in seconds with up to nine fractional digits, ending with ' |
HostCapability
HostCapability configures capabilities for the registry host.
| Enums | |
|---|---|
HOST_CAPABILITY_UNSPECIFIED |
UNKNOWN should never be set. |
HOST_CAPABILITY_PULL |
Pull represents the capability to fetch manifests and blobs by digest. |
HOST_CAPABILITY_RESOLVE |
Resolve represents the capability to fetch manifests by name. |
HOST_CAPABILITY_PUSH |
Push represents the capability to push blobs and manifests. |
RegistryHeader
RegistryHeader configures headers for the registry.
| JSON representation |
|---|
{ "key": string, "value": [ string ] } |
| Fields | |
|---|---|
key |
Key configures the header key. |
value[] |
Value configures the header value. |
CertificateConfig
CertificateConfig configures certificate for the registry.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field certificate. One of the methods to configure the certificate. certificate can be only one of the following: |
|
gcpSecretManagerSecretUri |
The URI configures a secret from Secret Manager in the format "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION" for global secret or "projects/$PROJECT_ID/locations/$REGION/secrets/$SECRET_NAME/versions/$VERSION" for regional secret. Version can be fixed (e.g. "2") or "latest" |
CertificateConfigPair
CertificateConfigPair configures pairs of certificates, which is used for client certificate and key pairs under a registry.
| JSON representation |
|---|
{ "cert": { object ( |
| Fields | |
|---|---|
cert |
Cert configures the client certificate. |
key |
Key configures the client private key. Optional. |