Added Elasticsearch
This commit is contained in:
parent
17289137a5
commit
81cea46d0a
37
elasticsearch/deployment.yaml
Normal file
37
elasticsearch/deployment.yaml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: elasticsearch
|
||||||
|
namespace: app-notifications
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: elasticsearch
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: elasticsearch
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: elasticsearch
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.1
|
||||||
|
ports:
|
||||||
|
- containerPort: 9200
|
||||||
|
name: http
|
||||||
|
- containerPort: 9300
|
||||||
|
name: transport
|
||||||
|
env:
|
||||||
|
- name: discovery.type
|
||||||
|
value: single-node
|
||||||
|
- name: xpack.security.enabled
|
||||||
|
value: "true"
|
||||||
|
- name: ES_JAVA_OPTS
|
||||||
|
value: "-Xms1g -Xmx1g"
|
||||||
|
volumeMounts:
|
||||||
|
- name: elastic-data
|
||||||
|
mountPath: /usr/share/elasticsearch/data
|
||||||
|
volumes:
|
||||||
|
- name: elastic-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: elasticsearch-data
|
||||||
11
elasticsearch/pvc.yaml
Normal file
11
elasticsearch/pvc.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: elasticsearch-data
|
||||||
|
namespace: app-notifications
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 20Gi
|
||||||
16
elasticsearch/service.yaml
Normal file
16
elasticsearch/service.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: elasticsearch
|
||||||
|
namespace: app-notifications
|
||||||
|
labels:
|
||||||
|
app: elasticsearch
|
||||||
|
spec:
|
||||||
|
clusterIP: None
|
||||||
|
selector:
|
||||||
|
app: elasticsearch
|
||||||
|
ports:
|
||||||
|
- port: 9200
|
||||||
|
name: http
|
||||||
|
- port: 9300
|
||||||
|
name: transport
|
||||||
Loading…
x
Reference in New Issue
Block a user