Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9345634
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
View Options
diff --git a/kubernetes/50-elasticsearch.yml b/kubernetes/50-elasticsearch.yml
index 42cd33d..2ca9465 100644
--- a/kubernetes/50-elasticsearch.yml
+++ b/kubernetes/50-elasticsearch.yml
@@ -1,107 +1,107 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: elasticsearch-data-pv
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
storageClassName: elasticsearch-data-pv
local:
path: /srv/softwareheritage-kube/dev/elasticsearch
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
# TODO adapt for your needs
- key: kubernetes.io/os
operator: In
values:
- linux
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: elasticsearch-data-pvc
spec:
accessModes:
- ReadWriteOnce
storageClassName: elasticsearch-data-pv
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: elasticsearch
labels:
app: elasticsearch
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: elasticsearch
template:
metadata:
labels:
app: elasticsearch
spec:
containers:
- name: elasticsearch
image: elasticsearch:7.9.3
imagePullPolicy: Always
ports:
- containerPort: 9200
resources:
requests:
memory: "768Mi"
cpu: "50m"
limits:
memory: "2048Mi"
cpu: "1000m"
env:
- name: discovery.type
value: single-node
- name: ES_JAVA_OPTS
value: "-Xms512m -Xmx512m"
volumeMounts:
- - mountPath: "/data"
+ - mountPath: "/usr/share/elasticsearch/data"
name: elasticsearch-data-pvc
readinessProbe:
httpGet:
path: /
port: 9200
scheme: "HTTP"
failureThreshold: 5
periodSeconds: 1
startupProbe:
httpGet:
path: /
port: 9200
scheme: "HTTP"
initialDelaySeconds: 5
failureThreshold: 60
periodSeconds: 2
volumes:
- name: elasticsearch-data-pvc
persistentVolumeClaim:
claimName: elasticsearch-data-pvc
---
apiVersion: v1
kind: Service
metadata:
name: elasticsearch
spec:
type: ClusterIP
selector:
app: elasticsearch
ports:
- port: 9200
targetPort: 9200
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Jul 4, 3:27 PM (6 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3334554
Attached To
rDENV Development environment
Event Timeline
Log In to Comment