config

package
v0.0.0-...-bc5839e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// K8sNamespace is the namespace we use to connect containerd when CRI is enabled.
	K8sNamespace = "k8s.io"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Listen is the listening address which servers CRI.
	Listen string `json:"listen,omitempty"`
	// NetworkPluginBinDir is the directory in which the binaries for the plugin is kept.
	NetworkPluginBinDir string `json:"network-plugin-bin-dir,omitempty"`
	// NetworkPluginConfDir is the directory in which the admin places a CNI conf.
	NetworkPluginConfDir string `json:"network-plugin-conf-dir,omitempty"`
	// SandboxImage is the image used by sandbox container.
	SandboxImage string `json:"sandbox-image,omitempty"`
	// CriVersion is the cri version
	CriVersion string `json:"cri-version,omitempty"`
	// StreamServerPort is the port which cri stream server is listening on.
	StreamServerPort string `json:"stream-server-port,omitempty"`
	// StreamServerReusePort specify whether cri stream server share port with pouchd.
	StreamServerReusePort bool `json:"stream-server-reuse-port,omitempty"`
	// CriStatsCollectPeriod specify the time duration (in time.Second) cri collect stats from containerd.
	CriStatsCollectPeriod int `json:"cri-stats-collect-period,omitempty"`
	// EnableCriStatsCollect specify whether cri collect stats from containerd.
	EnableCriStatsCollect bool `json:"enable-cri-stats-collect,omitempty"`
	// RuntimeConfigFile is a file to make the runtime config persistent.
	RuntimeConfigFile string `json:"runtime-config-file"`
}

Config defines the CRI configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL