Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
LoadConfig loads the containerd server config from the provided path
Types ¶
type CgroupConfig ¶
type CgroupConfig struct {
Path string `toml:"path"`
}
CgroupConfig provides cgroup configuration
type Config ¶
type Config struct { // Root is the path to a directory where containerd will store persistent data Root string `toml:"root"` // 默认为 /var/lib/containerd // State is the path to a directory where containerd will store transient data State string `toml:"state"` // 默认为 /run/containerd // GRPC configuration settings GRPC GRPCConfig `toml:"grpc"` // Debug and profiling settings Debug Debug `toml:"debug"` //包含调试服务器的配置 // Metrics and monitoring settings Metrics MetricsConfig `toml:"metrics"` //包含指标服务器的配置 // DisabledPlugins are IDs of plugins to disable. Disabled plugins won't be // initialized and started. DisabledPlugins []string `toml:"disabled_plugins"` // Plugins provides plugin specific configuration for the initialization of a plugin Plugins map[string]toml.Primitive `toml:"plugins"` // 插件配置,每个插件都有默认的配置,这里会更改配置的特定项 // OOMScore adjust the containerd's oom score OOMScore int `toml:"oom_score"` // Cgroup specifies cgroup information for the containerd daemon process Cgroup CgroupConfig `toml:"cgroup"` // ProxyPlugins configures plugins which are communicated to over GRPC ProxyPlugins map[string]ProxyPlugin `toml:"proxy_plugins"` // contains filtered or unexported fields }
Config provides containerd configuration data for the server
type Debug ¶
type Debug struct { Address string `toml:"address"` UID int `toml:"uid"` GID int `toml:"gid"` Level string `toml:"level"` }
Debug provides debug configuration
type GRPCConfig ¶
type GRPCConfig struct { Address string `toml:"address"` //默认 /run/containerd/containerd.sock UID int `toml:"uid"` GID int `toml:"gid"` MaxRecvMsgSize int `toml:"max_recv_message_size"` //默认 16MB MaxSendMsgSize int `toml:"max_send_message_size"` //默认 16MB }
GRPCConfig provides GRPC configuration for the socket
type MetricsConfig ¶
type MetricsConfig struct { Address string `toml:"address"` GRPCHistogram bool `toml:"grpc_histogram"` }
MetricsConfig provides metrics configuration
type ProxyPlugin ¶
ProxyPlugin provides a proxy plugin configuration
Click to show internal directories.
Click to hide internal directories.