elastic and drawio
This commit is contained in:
parent
d3d3b1a804
commit
a4212e86d1
@ -12,6 +12,8 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: drawio
|
app: drawio
|
||||||
spec:
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
role: sebastianscode
|
||||||
containers:
|
containers:
|
||||||
- name: drawio
|
- name: drawio
|
||||||
image: docker.io/jgraph/drawio
|
image: docker.io/jgraph/drawio
|
||||||
|
|||||||
49
apps/elasticsearch/deployment.yaml
Normal file
49
apps/elasticsearch/deployment.yaml
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: elasticsearch
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: elasticsearch
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: elasticsearch
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: elasticsearch
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
|
||||||
|
ports:
|
||||||
|
- containerPort: 9200
|
||||||
|
- containerPort: 9300
|
||||||
|
env:
|
||||||
|
- name: discovery.type
|
||||||
|
value: "single-node"
|
||||||
|
- name: ES_JAVA_OPTS
|
||||||
|
value: "-Xms2g -Xmx2g"
|
||||||
|
- name: ELASTIC_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: elasticsearch-secret
|
||||||
|
key: elastic-password
|
||||||
|
- name: xpack.security.enabled
|
||||||
|
value: "true"
|
||||||
|
- name: xpack.security.http.ssl.enabled
|
||||||
|
value: "false"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "3Gi"
|
||||||
|
cpu: "250m"
|
||||||
|
limits:
|
||||||
|
memory: "4Gi"
|
||||||
|
cpu: "1"
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /usr/share/elasticsearch/data
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: elasticsearch-data
|
||||||
11
apps/elasticsearch/pvc.yaml
Normal file
11
apps/elasticsearch/pvc.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: elasticsearch-data
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 75Gi
|
||||||
8
apps/elasticsearch/secret.yaml
Normal file
8
apps/elasticsearch/secret.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: elasticsearch-secret
|
||||||
|
type: Opaque
|
||||||
|
stringData:
|
||||||
|
elastic-password: "6YYHw676cSnl19wjKebHTXwCfe9xAzCxsqklPIJYYFhQr7tUReIyOIOndAUzalWM4TVl4+S/A/BE01jU"
|
||||||
15
apps/elasticsearch/service.yaml
Normal file
15
apps/elasticsearch/service.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: elasticsearch
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: elasticsearch
|
||||||
|
ports:
|
||||||
|
- port: 9200
|
||||||
|
targetPort: 9200
|
||||||
|
name: http
|
||||||
|
- port: 9300
|
||||||
|
targetPort: 9300
|
||||||
|
name: transport
|
||||||
Loading…
Reference in New Issue
Block a user