-
Notifications
You must be signed in to change notification settings - Fork 21
/
annotations.go
55 lines (44 loc) · 1.88 KB
/
annotations.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package v1alpha1
const (
DatabaseNamePrefix = "kubedb"
GenericKey = "kubedb.com"
LabelDatabaseKind = GenericKey + "/kind"
LabelDatabaseName = GenericKey + "/name"
LabelRole = GenericKey + "/role"
PostgresKey = ResourceSingularPostgres + "." + GenericKey
ElasticsearchKey = ResourceSingularElasticsearch + "." + GenericKey
MySQLKey = ResourceSingularMySQL + "." + GenericKey
MongoDBKey = ResourceSingularMongoDB + "." + GenericKey
RedisKey = ResourceSingularRedis + "." + GenericKey
MemcachedKey = ResourceSingularMemcached + "." + GenericKey
EtcdKey = ResourceSingularEtcd + "." + GenericKey
SnapshotKey = ResourceSingularSnapshot + "." + GenericKey
LabelSnapshotStatus = SnapshotKey + "/status"
AnnotationInitialized = GenericKey + "/initialized"
AnnotationJobType = GenericKey + "/job-type"
PrometheusExporterPortNumber = 56790
PrometheusExporterPortName = "prom-http"
JobTypeBackup = "backup"
JobTypeRestore = "restore"
ElasticsearchRestPort = 9200
ElasticsearchRestPortName = "http"
ElasticsearchNodePort = 9300
ElasticsearchNodePortName = "transport"
MongoDBShardPort = 27017
MongoDBConfigdbPort = 27017
MongoDBMongosPort = 27017
MySQLNodePort = 3306
MySQLGroupComPort = 33060
MySQLMaxGroupMembers = 9
// The recommended MySQL server version for group replication (GR)
MySQLGRRecommendedVersion = "5.7.25"
MySQLDefaultGroupSize = 3
MySQLDefaultBaseServerID = uint(1)
// The server id for each group member must be unique and in the range [1, 2^32 - 1]
// And the maximum group size is 9. So MySQLMaxBaseServerID is the maximum safe value
// for BaseServerID calculated as max MySQL server_id value - max Replication Group size.
MySQLMaxBaseServerID = uint(4294967295 - 9)
RedisShardKey = RedisKey + "/shard"
RedisNodePort = 6379
RedisGossipPort = 16379
)