forked from kanisterio/kanister
-
Notifications
You must be signed in to change notification settings - Fork 0
/
local_cluster.yaml
57 lines (57 loc) · 1.42 KB
/
local_cluster.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
apiVersion: apps.foundationdb.org/v1beta1
kind: FoundationDBCluster
metadata:
labels:
controller-tools.k8s.io: "1.0"
name: foundationdbcluster-sample
spec:
version: 6.2.20
databaseConfiguration:
redundancy_mode: double
volumeSize: "16G"
faultDomain:
key: foundationdb.org/none
processCounts:
stateless: -1
customParameters:
- "knob_disable_posix_kernel_aio=1"
volumes:
- name: fdb-certs
secret:
secretName: fdb-kubernetes-operator-secrets
mainContainer:
imageName: <registry>/<repository>/foundationdb:<tag_name>
enableTls: true
env:
- name: FDB_TLS_CERTIFICATE_FILE
value: /tmp/fdb-certs/cert.pem
- name: FDB_TLS_CA_FILE
value: /tmp/fdb-certs/cert.pem
- name: FDB_TLS_KEY_FILE
value: /tmp/fdb-certs/key.pem
volumeMounts:
- name: fdb-certs
mountPath: /tmp/fdb-certs
securityContext:
runAsUser: 0
sidecarContainer:
enableTls: true
env:
- name: FDB_TLS_CERTIFICATE_FILE
value: /tmp/fdb-certs/cert.pem
- name: FDB_TLS_CA_FILE
value: /tmp/fdb-certs/cert.pem
- name: FDB_TLS_KEY_FILE
value: /tmp/fdb-certs/key.pem
volumeMounts:
- name: fdb-certs
mountPath: /tmp/fdb-certs
securityContext:
runAsUser: 0
securityContext:
fsGroup: 0
automountServiceAccountToken: false
resources:
requests:
cpu: 250m
memory: 128Mi