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.24.0"
)
Variables ¶
View Source
var DefaultDragonflyArgs = []string{ "--alsologtostderr", "--primary_port_http_enabled=false", fmt.Sprintf("--admin_port=%d", DragonflyAdminPort), "--admin_nopass", }
Functions ¶
func GetDragonflyResources ¶
GetDragonflyResources returns the resources required for a Dragonfly Instance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.