-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathels.yml
115 lines (115 loc) · 3.18 KB
/
els.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: <name>
namespace: <namespace>
labels:
name: <name>
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
name: <name>
template:
metadata:
labels:
name: <name>
spec:
nodeSelector:
env: <clientId>
db: <nodeLabel>
priorityClassName: class-storage
initContainers:
- name: init-dir
image: busybox
volumeMounts:
- name: vol-data
mountPath: /var/lib/containerd/pam/<namespace>/<name>/data
command: ["/bin/sh", "-c", "chown 1001 /var/lib/containerd/pam/<namespace>/<name>/data"]
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
containers:
- name: <name>
image: 3dsinteractive/elasticsearch:6.8.23-custom
imagePullPolicy: Always
env:
- name: ELASTICSEARCH_CLUSTER_NAME
value: <namespace>
- name: ELASTICSEARCH_MINIMUM_MASTER_NODES
value: <minimumMasterNode>
- name: ELASTICSEARCH_CLUSTER_HOSTS
value: <clusters>
- name: ELASTICSEARCH_NODE_NAME
value: <name>
- name: ELASTICSEARCH_HEAP_SIZE
value: <heapSize>
- name: ELASTICSEARCH_CUSTOM_MAX_CLAUSE_COUNT
value: <maxClauseCount>
- name: ELASTICSEARCH_CUSTOM_QUERY_CACHE_SIZE
value: <queryCacheSize>
- name: ELASTICSEARCH_CUSTOM_MEMORY_LOCK
value: "false"
- name: ELASTICSEARCH_CUSTOM_BULK_QUEUE_SIZE
value: <bulkQueueSize>
- name: ELASTICSEARCH_CUSTOM_INDEX_QUEUE_SIZE
value: <indexQueueSize>
- name: ELASTICSEARCH_SNAPSHOT_S3_KEY
value: <snapshotS3Key>
- name: ELASTICSEARCH_SNAPSHOT_S3_SECRET
value: <snapshotS3Secret>
- name: ELASTICSEARCH_PLUGINS
value: "analysis-icu"
resources:
requests:
memory: <minMem>
cpu: <minCpu>
limits:
memory: <maxMem>
cpu: <maxCpu>
livenessProbe:
tcpSocket:
port: 9300
initialDelaySeconds: 60
timeoutSeconds: 3
periodSeconds: 300
readinessProbe:
tcpSocket:
port: 9300
initialDelaySeconds: 60
timeoutSeconds: 3
periodSeconds: 30
failureThreshold: 5
ports:
- containerPort: 9300
name: els9300
- containerPort: 9200
name: els9200
volumeMounts:
- mountPath: /bitnami/elasticsearch/data
name: vol-data
volumes:
- name: vol-data
persistentVolumeClaim:
claimName: pvc-<name>
---
apiVersion: v1
kind: Service
metadata:
name: <name>
namespace: <namespace>
labels:
name: <name>
spec:
selector:
name: <name>
ports:
- name: els9300
port: 9300
protocol: TCP
- name: els9200
port: 9200
protocol: TCP
clusterIP: None