-
Notifications
You must be signed in to change notification settings - Fork 0
/
elasticsearch.yaml
58 lines (54 loc) · 1.14 KB
/
elasticsearch.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
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: elasticsearch
labels:
app.podman.io/name: elasticsearch
spec:
accessModes:
- ReadWriteOnce
---
apiVersion: v1
kind: Secret
metadata:
name: elasticsearch
labels:
app.podman.io/name: elasticsearch
stringData:
ELASTIC_PASSWORD: password
---
apiVersion: v1
kind: Pod
metadata:
name: elasticsearch
labels:
app.podman.io/name: elasticsearch
spec:
containers:
- name: elasticsearch
image: docker.io/library/elasticsearch:8.14.3
env:
- name: discovery.type
value: single-node
- name: ELASTIC_USERNAME
value: elastic
- name: xpack.security.enabled
value: 'true'
envFrom:
- secretRef:
name: elasticsearch
ports:
- containerPort: 9200
hostPort: 9200
- containerPort: 9300
hostPort: 9300
resources:
limits:
memory: 2G
volumeMounts:
- name: elasticsearch
mountPath: /usr/share/elasticsearch/data
volumes:
- name: elasticsearch
persistentVolumeClaim:
claimName: elasticsearch