Repository navigation
Expand file tree
/
Copy pathmetadata_base.libsonnet
More file actions
153 lines (153 loc) · 5.84 KB
/
Copy pathmetadata_base.libsonnet
File metadata and controls
153 lines (153 loc) · 5.84 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
cloud_provider: 'google', // Either google, aws or minikube
namespace: error 'must supply namespace',
clusterName: error 'must supply cluster name',
environment: 'dev',
// Set this field if you don't intend to ever join this instance with others.
// This disables inter cluster crdb<->crdb access when set to true.
single_cluster: false,
enableScd: false,
enableScdGlobalLock: false,
enableTimeBasedNotificationIndex: false,
enableDssMetrics: false,
enableMonitoring: true,
datastore: 'cockroachdb',
datastoreMaxOpenConns: 4,
locality: error 'must supply locality',
cockroach: {
locality: '',
hostnameSuffix: error 'must supply a hostnameSuffix, or override in statefulset',
shouldInit: false, // Set this to true if you are starting a new cluster.
grpc_port: 26257,
http_port: 8080,
image: error 'must specify cockroach db image. Until DSS v0.16, the recommended CockroachDB image is `cockroachdb/cockroach:v21.2.7`. From DSS v0.17, the recommended CockroachDB image is cockroachdb/cockroach:v24.1.3. Example: cockroachdb/cockroach:v21.2.7',
nodeIPs: error 'must supply the per-node ip addresses as an array', // For AWS, this array should contain the allocation id of the elastic ips.
JoinExisting: [],
storageClass: 'standard',
clusterName: '',
cache: '25%', // Value of the --cache flag of `cockroach start`
maxSqlMemory: '25%', // Value of the --max-sql-memory flag of `cockroach start`
// Kubernetes container resources, e.g. '3.5' CPU and '14Gi' memory. Not set if empty.
cpuRequest: '',
memoryRequest: '',
cpuLimit: '',
memoryLimit: '',
env: {}, // Additional environment variables, e.g. { GOGC: '80', GOMAXPROCS: '2' }
enableLivenessProbe: true, // If false, the liveness probe always succeeds
enableReadinessProbe: true, // If false, the readiness probe always succeeds
},
yugabyte: {
image: error 'must specify yugabyte db image',
storageClass: 'standard',
masterNodeIPs: [],
tserverNodeIPs: [],
masterAddresses: ["yb-master-0.yb-masters.${NAMESPACE}.svc.cluster.local:7100", "yb-master-1.yb-masters.${NAMESPACE}.svc.cluster.local:7100", "yb-master-2.yb-masters.${NAMESPACE}.svc.cluster.local:7100"],
master: {
rpc_bind_addresses: "${HOSTNAME}.yb-masters.${NAMESPACE}.svc.cluster.local",
server_broadcast_addresses: "${HOSTNAME}.yb-masters.${NAMESPACE}.svc.cluster.local:7100",
},
tserver: {
rpc_bind_addresses: "${HOSTNAME}.yb-tservers.${NAMESPACE}.svc.cluster.local",
server_broadcast_addresses: "${HOSTNAME}.yb-tservers.${NAMESPACE}.svc.cluster.local:9100",
},
fix_27367_issue: false,
light_resources: false,
placement: {
cloud: error 'must specify placement cloud',
region: error 'must specify placement region',
zone: error 'must specify placement zone',
},
},
raft: {
// The DSS nodes deployed by this release: {id, endpoint, ip}
nodes: error 'must supply the raft nodes of this instance',
// The other nodes of the pool, deployed by other releases: {id, endpoint}
peers: [],
clusterID: error 'must supply the raft cluster ID',
// Secret with the mutual TLS material of the Raft listeners
tlsSecret: error 'must supply the name of the raft mutual TLS secret',
storage: {
size: '100Gi',
storageClass: '',
},
},
PSP: {
roleRef: '',
roleBinding: false,
},
backend: {
ipName: error 'must supply ip name', // For AWS, use the elastic ip allocation id.
port: 8080,
image: error 'must specify image',
imagePullPolicy: '',
prof_grpc_name: '',
pubKeys: [''],
jwksEndpoint: '',
jwksKeyIds: [],
jwksRefreshInterval: '',
jwksKeyTtl: '',
hostname: error 'must specify hostname',
publicEndpoint: '',
dumpRequests: false,
certName: if $.cloud_provider == "aws" then error 'must specify certName for AWS cloud provider', # Only used by AWS
sslPolicy: '', # SSL Policy Name. Only used by Google Cloud.
// Kubernetes container resources, e.g. '0.5' CPU and '2Gi' memory. Not set if empty.
cpuRequest: '',
memoryRequest: '',
cpuLimit: '',
memoryLimit: '',
env: {}, // Additional environment variables, e.g. { GOGC: '80', GOMEMLIMIT: '1800MiB' }
},
alert: {
enable: false,
smtp: {
host: error 'must specify smtp hostname',
email: error 'must specify source email',
password: error 'must specify source email password',
dest: error 'must specify destination email',
},
},
prometheus: {
image: 'prom/prometheus:v3.8.1',
expose_external: false,
IP: '', // This is the static external ip address for promethus ingress, leaving blank means your cloud provider will assign an ephemeral IP
retention: '15d',
storage_size: '100Gi',
storageClass: 'standard',
scrape_interval: '5s',
evaluation_interval: '5s',
custom_rules: [], // An array of Prometheus recording rules, each of which is an object with "record" and "expr" properties.
custom_args: [], // An array of strings to pass as commandline arguments to Prometheus.
},
schema_manager: {
enable: false, // NB: Automatically enabled if should_init is set to true.
image: error 'must specify image',
desired_rid_db_version: '4.1.0',
desired_scd_db_version: '3.4.1',
desired_aux_db_version: '1.1.0',
},
evict: {
scd: {
enable_cron: false,
schedule: "",
ttl: "2688h",
timeout: "",
limit: 0,
batch_size: 0,
operational_intents: true,
subscriptions: true,
},
rid: {
enable_cron: true,
schedule: "",
ttl: "30m",
timeout: "",
limit: 0,
batch_size: 0,
ISAs: true,
subscriptions: true,
},
},
image_pull_secret: '',
subnet: if $.cloud_provider == "aws" then error 'must specify subnet for AWS cloud provider', // For AWS, subnet of the elastic ips
}