constants

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 0 Imported by: 27

Documentation

Index

Constants

View Source
const (
	// DefaultNatsVersion is the nats server version to use.
	DefaultNatsVersion = "1.3.0"

	// ClientPort is the port for the clients.
	ClientPort = 4222

	// ClusterPort is the port for server routes.
	ClusterPort = 6222

	// MonitoringPort is the port for the server monitoring endpoint.
	MonitoringPort = 8222

	// MetricsPort is the port for the prometheus metrics endpoint.
	MetricsPort = 7777

	// ConfigMapVolumeName is the name of the volume use for the shared config map.
	ConfigMapVolumeName = "nats-config"

	// ConfigMapMountPath is the path on which the shared ConfigMap
	// for the NATS cluster will be located.
	ConfigMapMountPath = "/etc/nats-config"

	// ConfigFileName is the name of the config file used by the NATS server.
	ConfigFileName = "nats.conf"

	// ConfigFilePath is the absolute path to the NATS config file.
	ConfigFilePath = ConfigMapMountPath + "/" + ConfigFileName

	// PidFileVolumeName is the name of the volume used for the NATS server pid file.
	PidFileVolumeName = "pid"

	// PidFileName is the pid file name.
	PidFileName = "gnatsd.pid"

	// PidFileMountPath is the absolute path to the directory where NATS
	// will be leaving its pid file.
	PidFileMountPath = "/var/run/nats"

	// PidFilePath is the location of the pid file.
	PidFilePath = PidFileMountPath + "/" + PidFileName

	// ServerSecretVolumeName is the name of the volume used for the server certs.
	ServerSecretVolumeName = "server-tls-certs"

	// ServerCertsMountPath is the path where the server certificates
	// to secure clients connections are located.
	ServerCertsMountPath = "/etc/nats-server-tls-certs"
	ServerCAFilePath     = ServerCertsMountPath + "/ca.pem"
	ServerCertFilePath   = ServerCertsMountPath + "/server.pem"
	ServerKeyFilePath    = ServerCertsMountPath + "/server-key.pem"

	// RoutesSecretVolumeName is the name of the volume used for the routes certs.
	RoutesSecretVolumeName = "routes-tls-certs"

	// RoutesCertsMountPath is the path where the certificates
	// to secure routes connections are located.
	RoutesCertsMountPath = "/etc/nats-routes-tls-certs"
	RoutesCAFilePath     = RoutesCertsMountPath + "/ca.pem"
	RoutesCertFilePath   = RoutesCertsMountPath + "/route.pem"
	RoutesKeyFilePath    = RoutesCertsMountPath + "/route-key.pem"

	// Default Docker Images
	DefaultServerImage             = "nats"
	DefaultReloaderImage           = "connecteverything/nats-server-config-reloader"
	DefaultReloaderImageTag        = "0.2.2-v1alpha2"
	DefaultReloaderImagePullPolicy = "IfNotPresent"
	DefaultMetricsImage            = "synadia/prometheus-nats-exporter"
	DefaultMetricsImageTag         = "0.1.0"
	DefaultMetricsImagePullPolicy  = "IfNotPresent"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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