This commit is contained in:
jooho
2021-12-26 17:08:41 +09:00
parent d6e543eb24
commit 628f2ace5a
97 changed files with 3958 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: elasticsearch-deployment
labels:
env: production
tier: backend
app: elasticsearch
name: elasticsearch-deployment
spec:
replicas: 1
selector:
matchLabels:
env: production
tier: backend
app: elasticsearch
name: elasticsearch-pod
template:
metadata:
labels:
env: production
tier: backend
app: elasticsearch
name: elasticsearch-pod
spec:
containers:
- name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
imagePullPolicy: Always
env:
- name: discovery.type
value: single-node
- name: ES_JAVA_OPTS
value: "-Xms512m -Xmx512m"
- name: TZ
valueFrom:
configMapKeyRef:
name: common-configmap
key: TZ
ports:
- containerPort: 9200
name: http
- containerPort: 9300
name: tcp

View File

@@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
name: elasticsearch
labels:
env: production
tier: backend
app: elasticsearch
name: elasticsearch-service
spec:
selector:
env: production
tier: backend
app: elasticsearch
name: elasticsearch-pod
ports:
- port: 9200
protocol: TCP
targetPort: 9200