hubble

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT, Apache-2.0 Imports: 56 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT license. Copyright Authors of Cilium. Modified by Authors of Retina.

Copyright (c) Microsoft Corporation. Licensed under the MIT license. Copyright Authors of Cilium. Modified by Authors of Retina.

Copyright (c) Microsoft Corporation. Licensed under the MIT license. Copyright Authors of Cilium. Modified by Authors of Retina. This bootstraps Hubble control plane.

Index

Constants

This section is empty.

Variables

View Source
var (
	Agent = cell.Module(
		"agent",
		"Retina-Agent",
		Infrastructure,
		ControlPlane,
	)

	Infrastructure = cell.Module(
		"infrastructure",
		"Infrastructure",

		pprof.Cell,
		cell.Config(pprof.Config{
			Pprof:        true,
			PprofAddress: option.PprofAddressAgent,
			PprofPort:    option.PprofPortAgent,
		}),

		gops.Cell(defaults.GopsPortAgent),

		config.Cell,

		k8sClient.Cell,

		cell.Provide(func(cfg config.Config, k8sCfg *rest.Config) telemetry.Config {
			return telemetry.Config{
				Component:             "retina-agent",
				EnableTelemetry:       cfg.EnableTelemetry,
				ApplicationInsightsID: buildinfo.ApplicationInsightsID,
				RetinaVersion:         buildinfo.Version,
				EnabledPlugins:        cfg.EnabledPlugin,
			}
		}),
		telemetry.Constructor,
	)

	ControlPlane = cell.Module(
		"control-plane",
		"Control Plane",

		monitoragent.Cell,

		daemonCell,

		rnode.Cell,

		hubbleserver.Cell,

		pluginmanager.Cell,

		retinak8s.Cell,

		servermanager.Cell,

		telemetry.Heartbeat,
	)
)

Functions

func Execute

func Execute(cobraCmd *cobra.Command, h *hive.Hive)

func InitGlobalFlags

func InitGlobalFlags(cmd *cobra.Command, vp *viper.Viper)

Types

type Daemon

type Daemon struct {
	HTTPServer *servermanager.HTTPServer
	// contains filtered or unexported fields
}

func (*Daemon) Run

func (d *Daemon) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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