-
Notifications
You must be signed in to change notification settings - Fork 10
/
cockroachdb.yaml
59 lines (57 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
51
52
53
54
55
56
57
58
59
apiVersion: v1
kind: Namespace
metadata:
name: bank
labels:
name: bank
---
apiVersion: v1
kind: Service
metadata:
name: cockroachdb
namespace: bank
spec:
selector:
name: cockroachdb
service: database
type: ClusterIP
ports:
- name: db
port: 26257
targetPort: 26257
- name: dashboard
port: 8080
targetPort: 8080
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: cockroachdb
namespace: bank
labels:
service: database
spec:
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
name: cockroachdb
service: database
spec:
containers:
- name: db
image: cockroachdb/cockroach:v2.0.3
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: "20m"
memory: "55M"
command:
- "/cockroach/cockroach"
- "start"
- "--insecure"
restartPolicy: Always