Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultNatsVersion is the nats server version to use. DefaultNatsVersion = "1.4.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 // ConnectRetries is the number of retries for an implicit route. ConnectRetries = 10 // 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 // BootConfigFilePath is the path to the include file that // contains the external IP address. BootConfigFilePath = "advertise/client_advertise.conf" // BootConfigGatewayFilePath is the path to the include file that // contains the external IP address. BootConfigGatewayFilePath = "advertise/gateway_advertise.conf" // 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" DefaultServerCAFileName = "ca.pem" DefaultServerCertFileName = "server.pem" DefaultServerKeyFileName = "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" DefaultRoutesCAFileName = "ca.pem" DefaultRoutesCertFileName = "route.pem" DefaultRoutesKeyFileName = "route-key.pem" // GatewaySecretVolumeName is the name of the volume used for the routes certs. GatewaySecretVolumeName = "gateway-tls-certs" // GatewayCertsMountPath is the path where the certificates // to secure routes connections are located. GatewayCertsMountPath = "/etc/nats-gateways-tls-certs" DefaultGatewayCAFileName = "ca.pem" DefaultGatewayCertFileName = "server.pem" DefaultGatewayKeyFileName = "server-key.pem" // LeafnodeSecretVolumeName is the name of the volume used for the routes certs. LeafnodeSecretVolumeName = "leafnode-tls-certs" // LeafnodeCertsMountPath is the path where the certificates // to secure routes connections are located. LeafnodeCertsMountPath = "/etc/nats-leafnodes-tls-certs" DefaultLeafnodeCAFileName = "ca.pem" DefaultLeafnodeCertFileName = "server.pem" DefaultLeafnodeKeyFileName = "server-key.pem" // OperatorJWTMountPath is the path where the JWT for the // operator is located. OperatorJWTMountPath = "/etc/nats-operator" // OperatorJWTVolumeName is the name of the volume where the JWT is located. OperatorJWTVolumeName = "operator-jwt" // DefaultOperatorJWTFileName is the JWT operator file name. DefaultOperatorJWTFileName = "op.jwt" // Default Docker Images DefaultServerImage = "nats" DefaultReloaderImage = "connecteverything/nats-server-config-reloader" DefaultReloaderImageTag = "0.4.5-v1alpha2" DefaultReloaderImagePullPolicy = "IfNotPresent" DefaultMetricsImage = "synadia/prometheus-nats-exporter" DefaultMetricsImageTag = "0.2.2" DefaultMetricsImagePullPolicy = "IfNotPresent" DefaultBootconfigImage = "connecteverything/nats-boot-config" DefaultBootconfigImageTag = "0.5.2" // NatsBinaryPath is the path to the NATS binary inside the main container. NatsBinaryPath = "/gnatsd" // NatsContainerName is the name of the main container. NatsContainerName = "nats" // KubernetesNamespaceNatsIO represents the "nats-io" Kubernetes namespace. KubernetesNamespaceNatsIO = "nats-io" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.