Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Elasticsearch #1706

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,67 @@ spec:
labels:
app: elasticsearch
spec:
securityContext:
fsGroup: 1000
runAsUser: 1000
containers:
- name: elasticsearch
image: ghcr.io/giganticminecraft/growi-elasticsearch:sha-a6d1213
securityContext:
privileged: false
readOnlyRootFilesystem: false
runAsUser: 1000
capabilities:
add:
- IPC_LOCK
- SYS_RESOURCE
resources:
requests:
cpu: 1
memory: 1Gi
memory: 4Gi
limits:
cpu: 1
memory: 1Gi
memory: 4Gi
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: ES_JAVA_OPTS
value: "-Xms512m -Xmx512m"
value: "-Xms1024m -Xmx1024m"
- name: bootstrap.memory_lock
value: "true"
ports:
- name: http
containerPort: 9200
livenessProbe:
httpGet:
path: "/_cluster/health"
port: http
initialDelaySeconds: 20
periodSeconds: 10
readinessProbe:
httpGet:
path: "/_cluster/health"
port: http
initialDelaySeconds: 20
periodSeconds: 10
volumeMounts:
- name: config-volume
mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
subPath: elasticsearch.yml
- name: config-volume
mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
subPath: elasticsearch.yml
- name: data-volume
mountPath: /usr/share/elasticsearch/data
volumes:
- name: config-volume
configMap:
name: elasticsearch-config
- name: config-volume
configMap:
name: elasticsearch-config
volumeClaimTemplates:
- metadata:
name: data-volume
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 10Gi

Loading