-
Notifications
You must be signed in to change notification settings - Fork 7
/
cockroachdb.yaml
51 lines (50 loc) · 1.01 KB
/
cockroachdb.yaml
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
apiVersion: crdb.cockroachlabs.com/v1alpha1
kind: CrdbCluster
metadata:
# this translates to the name of the statefulset that is created
name: cockroachdb
spec:
dataStore:
pvc:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "60Gi"
volumeMode: Filesystem
resources:
requests:
cpu: 3
memory: 12Gi
limits:
cpu: 3
memory: 12Gi
tlsEnabled: true
# You can set either a version of the db or a specific image name
# cockroachDBVersion: v21.1.11
image:
name: cockroachdb/cockroach:v22.2.6
# nodes refers to the number of crdb pods that are created
# via the statefulset
nodes: 3
additionalLabels:
crdb: is-cool
---
apiVersion: v1
kind: Service
metadata:
name: crdb-lb
labels:
app: cockroachdb
spec:
selector:
app.kubernetes.io/name: cockroachdb
ports:
- protocol: "TCP"
port: 8080
name: dbconsole
- protocol: "TCP"
port: 26257
name: sql
type: LoadBalancer