resources

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DragonflyPort is the port on which Dragonfly listens
	DragonflyPort = 6379

	// DragonflyAdminPort is the admin port on which Dragonfly listens
	// IMPORTANT: This port should not be opened to non trusted networks.
	DragonflyAdminPort = 9999

	// DragonflyPortName is the name of the port on which the Dragonfly instance listens
	DragonflyPortName = "redis"

	// DragonflyOperatorName is the name of the operator
	DragonflyOperatorName = "dragonfly-operator"

	// DragonflyImage is the default image of the Dragonfly to use
	DragonflyImage = "docker.dragonflydb.io/dragonflydb/dragonfly"

	// DragonflyHealthCheckPath is the path on which the Dragonfly exposes its health check
	DragonflyHealthCheckPath = "/health"

	// Recommended Kubernetes Application Labels
	// KubernetesAppNameLabel is the name of the application
	KubernetesAppNameLabelKey = "app.kubernetes.io/name"

	// KubernetesAppVersionLabel is the version of the application
	KubernetesAppVersionLabelKey = "app.kubernetes.io/version"

	// KubernetesAppComponentLabel is the component of the application
	KubernetesAppComponentLabelKey = "app.kubernetes.io/component"

	KubernetesAppInstanceNameLabel = "app.kubernetes.io/instance"

	// KubernetesManagedByLabel is the tool being used to manage the operation of an application
	KubernetesManagedByLabelKey = "app.kubernetes.io/managed-by"

	// KubernetesPartOfLabel is the name of a higher level application this one is part of
	KubernetesPartOfLabelKey = "app.kubernetes.io/part-of"

	MasterIp string = "master-ip"

	Role string = "role"

	Master string = "master"

	Replica string = "replica"
)
View Source
const (
	TlsPath             = "/etc/dragonfly-tls"
	AclPath             = "/var/lib/dragonfly"
	TLSCACertDirArg     = "--tls_ca_cert_file"
	TLSCACertDir        = "/etc/dragonfly/tls"
	TLSCACertVolumeName = "client-ca-cert"
)
View Source
const (
	Version = "v1.16.0"
)

Variables

View Source
var DefaultDragonflyArgs = []string{
	"--alsologtostderr",
	"--primary_port_http_enabled=false",
	fmt.Sprintf("--admin_port=%d", DragonflyAdminPort),
	"--admin_nopass",
}

Functions

func GetDragonflyResources

func GetDragonflyResources(ctx context.Context, df *resourcesv1.Dragonfly) ([]client.Object, error)

GetDragonflyResources returns the resources required for a Dragonfly Instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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