forked from FoundationDB/fdb-kubernetes-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.yaml
152 lines (152 loc) · 3.74 KB
/
client.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
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
apiVersion: v1
kind: Service
metadata:
labels:
app: test-cluster-client
name: test-cluster-client
spec:
ports:
- port: 9562
targetPort: 5000
selector:
app: test-cluster-client
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-cluster-client
spec:
replicas: 2
selector:
matchLabels:
app: test-cluster-client
template:
metadata:
labels:
app: test-cluster-client
name: test-cluster-client
spec:
automountServiceAccountToken: false
containers:
- env:
- name: FDB_CLUSTER_FILE
value: /var/dynamic-conf/fdb.cluster
- name: FDB_API_VERSION
value: "610"
- name: FDB_NETWORK_OPTION_TRACE_LOG_GROUP
value: test-cluster-client
- name: FDB_NETWORK_OPTION_EXTERNAL_CLIENT_DIRECTORY
value: /var/dynamic-conf/lib/multiversion
- name: LD_LIBRARY_PATH
value: /var/dynamic-conf/lib
image: foundationdb/foundationdb-sample-python-app:latest
imagePullPolicy: Always
name: client
resources:
limits:
cpu: 250m
memory: 128Mi
requests:
cpu: 250m
memory: 128Mi
volumeMounts:
- mountPath: /var/dynamic-conf
name: dynamic-conf
initContainers:
- args:
- --copy-file
- fdb.cluster
- --copy-library
- "6.2"
- --copy-library
- "6.3"
- --init-mode
- --require-not-empty
- fdb.cluster
image: foundationdb/foundationdb-kubernetes-sidecar:6.3.24-1
name: foundationdb-kubernetes-init
volumeMounts:
- mountPath: /var/input-files
name: config-map
- mountPath: /var/output-files
name: dynamic-conf
volumes:
- configMap:
items:
- key: cluster-file
path: fdb.cluster
name: test-cluster-config
name: config-map
- emptyDir: {}
name: dynamic-conf
---
apiVersion: apps.foundationdb.org/v1beta2
kind: FoundationDBCluster
metadata:
name: test-cluster
spec:
automationOptions:
replacements:
enabled: true
faultDomain:
key: foundationdb.org/none
labels:
filterOnOwnerReference: false
matchLabels:
foundationdb.org/fdb-cluster-name: test-cluster
processClassLabels:
- foundationdb.org/fdb-process-class
processGroupIDLabels:
- foundationdb.org/fdb-process-group-id
minimumUptimeSecondsForBounce: 60
processCounts:
cluster_controller: 1
stateless: -1
processes:
general:
customParameters:
- knob_disable_posix_kernel_aio=1
podTemplate:
spec:
containers:
- name: foundationdb
resources:
requests:
cpu: 100m
memory: 128Mi
securityContext:
runAsUser: 0
- name: foundationdb-kubernetes-sidecar
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
securityContext:
runAsUser: 0
initContainers:
- name: foundationdb-kubernetes-init
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
securityContext:
runAsUser: 0
volumeClaimTemplate:
spec:
resources:
requests:
storage: 16G
routing:
headlessService: true
sidecarContainer:
enableLivenessProbe: true
enableReadinessProbe: false
useExplicitListenAddress: true
version: 6.3.22