Documentation ¶
Overview ¶
Package config - contain environment variables used by cmd-forwarder-vpp
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string `default:"forwarder" desc:"Name of Endpoint"` Labels map[string]string `default:"p2p:true" desc:"Labels related to this forwarder-vpp instance"` NSName string `default:"forwarder" desc:"Name of Network Service to Register with Registry"` ConnectTo url.URL `default:"unix:///connect.to.socket" desc:"url to connect to" split_words:"true"` ListenOn url.URL `default:"unix:///listen.on.socket" desc:"url to listen on" split_words:"true"` MaxTokenLifetime time.Duration `default:"10m" desc:"maximum lifetime of tokens" split_words:"true"` RegistryClientPolicies []string `` /* 187-byte string literal not displayed */ LogLevel string `default:"INFO" desc:"Log level" split_words:"true"` DialTimeout time.Duration `default:"750ms" desc:"Timeout for the dial the next endpoint" split_words:"true"` OpenTelemetryEndpoint string `default:"otel-collector.observability.svc.cluster.local:4317" desc:"OpenTelemetry Collector Endpoint" split_words:"true"` MetricsExportInterval time.Duration `default:"10s" desc:"interval between mertics exports" split_words:"true"` PprofEnabled bool `default:"false" desc:"is pprof enabled" split_words:"true"` PprofListenOn string `default:"localhost:6060" desc:"pprof URL to ListenAndServe" split_words:"true"` PrometheusListenOn string `default:":8081" desc:"Prometheus URL to ListenAndServe" split_words:"true"` PrometheusServerHeaderTimeout time.Duration `` /* 132-byte string literal not displayed */ TunnelIP net.IP `desc:"IP to use for tunnels" split_words:"true"` VxlanPort uint16 `default:"0" desc:"VXLAN port to use" split_words:"true"` VppAPISocket string `` /* 171-byte string literal not displayed */ VppInit vppinit.Func `default:"AF_PACKET" desc:"type of VPP initialization. Must be AF_XDP, AF_PACKET or NONE" split_words:"true"` VppInitParams string `desc:"Configuration file path containing VPP API parameters for initialization" split_words:"true"` VPPMinOperationTimeout time.Duration `default:"2s" desc:"minimum timeout for every vpp operation" split_words:"true"` ResourcePollTimeout time.Duration `default:"30s" desc:"device plugin polling timeout" split_words:"true"` DevicePluginPath string `default:"/var/lib/kubelet/device-plugins/" desc:"path to the device plugin directory" split_words:"true"` PodResourcesPath string `default:"/var/lib/kubelet/pod-resources/" desc:"path to the pod resources directory" split_words:"true"` DeviceSelectorFile string `default:"" desc:"config file for device name to label matching" split_words:"true"` SRIOVConfigFile string `default:"" desc:"PCI resources config path" split_words:"true"` PCIDevicesPath string `default:"/sys/bus/pci/devices" desc:"path to the PCI devices directory" split_words:"true"` PCIDriversPath string `default:"/sys/bus/pci/drivers" desc:"path to the PCI drivers directory" split_words:"true"` CgroupPath string `default:"/host/sys/fs/cgroup/devices" desc:"path to the host cgroup directory" split_words:"true"` VFIOPath string `default:"/host/dev/vfio" desc:"path to the host VFIO directory" split_words:"true"` MechanismPriority []string `default:"" desc:"sets priorities for mechanisms" split_words:"true"` }
Config - configuration for cmd-forwarder-vpp
Click to show internal directories.
Click to hide internal directories.