forked from FoundationDB/fdb-kubernetes-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cluster_local_tls.yaml
87 lines (87 loc) · 2.59 KB
/
cluster_local_tls.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
# This file provides an example of a cluster you can run in a local testing
# environment, with TLS enabled.
apiVersion: apps.foundationdb.org/v1beta1
kind: FoundationDBCluster
metadata:
labels:
controller-tools.k8s.io: "1.0"
name: sample-cluster
spec:
version: 6.2.28
faultDomain:
key: foundationdb.org/none
processCounts:
stateless: -1
cluster_controller: 1
services:
headless: true
processes:
general:
customParameters:
- "knob_disable_posix_kernel_aio=1"
volumeClaimTemplate:
spec:
resources:
requests:
storage: "16G"
podTemplate:
spec:
securityContext:
fsGroup: 0
volumes:
- name: fdb-certs
secret:
secretName: fdb-kubernetes-operator-secrets
containers:
- name: foundationdb
resources:
requests:
cpu: 250m
memory: 128Mi
env:
- name: FDB_TLS_CERTIFICATE_FILE
value: /tmp/fdb-certs/tls.crt
- name: FDB_TLS_CA_FILE
value: /tmp/fdb-certs/tls.crt
- name: FDB_TLS_KEY_FILE
value: /tmp/fdb-certs/tls.key
volumeMounts:
- name: fdb-certs
mountPath: /tmp/fdb-certs
securityContext:
runAsUser: 0
- name: foundationdb-kubernetes-sidecar
env:
- name: FDB_TLS_CERTIFICATE_FILE
value: /tmp/fdb-certs/tls.crt
- name: FDB_TLS_CA_FILE
value: /tmp/fdb-certs/tls.crt
- name: FDB_TLS_KEY_FILE
value: /tmp/fdb-certs/tls.key
resources:
requests:
cpu: 250m
memory: 128Mi
limits:
cpu: 250m
memory: 128Mi
volumeMounts:
- name: fdb-certs
mountPath: /tmp/fdb-certs
securityContext:
runAsUser: 0
initContainers:
- name: foundationdb-kubernetes-init
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 100m
memory: 128Mi
securityContext:
runAsUser: 0
mainContainer:
enableTls: true
sidecarContainer:
enableTls: true