-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s.yaml
94 lines (94 loc) · 1.76 KB
/
k8s.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
apiVersion: v1
kind: Namespace
metadata:
name: elastic-ha
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: aws-ebs
namespace: elastic-ha
parameters:
fsType: ext4
type: gp2
provisioner: kubernetes.io/aws-ebs
volumeBindingMode: WaitForFirstConsumer
---
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: ha-es
namespace: elastic-ha
spec:
http:
service:
spec:
type: LoadBalancer
nodeSets:
- config:
node.roles:
- master
- data
xpack.ml.enabled: false
count: 3
name: default
podTemplate:
metadata:
labels:
app: elasticsearch
spec:
containers:
- name: elasticsearch
resources:
limits:
cpu: 4
memory: 12Gi
requests:
cpu: 1
memory: 12Gi
initContainers:
- command:
- sh
- -c
- sysctl -w vm.max_map_count=262144
name: sysctl
securityContext:
privileged: true
volumeClaimTemplates:
- metadata:
name: elasticsearch-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: aws-ebs
updateStrategy:
changeBudget:
maxSurge: -1
maxUnavailable: 1
version: 7.16.1
---
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: ha-es-kibana
namespace: elastic-ha
spec:
count: 1
elasticsearchRef:
name: ha-es
http:
service:
spec:
type: LoadBalancer
podTemplate:
spec:
containers:
- name: kibana
resources:
limits:
cpu: 1
memory: 1Gi
version: 7.16.1