2022-12-22 12:29:31 +00:00
|
|
|
{{- if eq .Values.FULLTEXTSEARCH_ENABLED "yes" }}
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
2025-08-22 11:32:53 +00:00
|
|
|
kompose.version: 1.37.0 (fb0539e64)
|
2022-12-22 12:29:31 +00:00
|
|
|
labels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-fulltextsearch
|
|
|
|
|
name: nextcloud-aio-fulltextsearch
|
2024-02-28 18:30:56 +00:00
|
|
|
namespace: "{{ .Values.NAMESPACE }}"
|
2022-12-22 12:29:31 +00:00
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-fulltextsearch
|
2024-03-08 09:34:27 +00:00
|
|
|
strategy:
|
|
|
|
|
type: Recreate
|
2022-12-22 12:29:31 +00:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
2025-08-22 11:32:53 +00:00
|
|
|
kompose.version: 1.37.0 (fb0539e64)
|
2022-12-22 12:29:31 +00:00
|
|
|
labels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-fulltextsearch
|
|
|
|
|
spec:
|
2023-02-01 16:00:52 +01:00
|
|
|
initContainers:
|
|
|
|
|
- name: init-volumes
|
2025-12-10 13:39:37 +00:00
|
|
|
image: ghcr.io/nextcloud-releases/aio-alpine:20251210_133359
|
2023-02-01 16:00:52 +01:00
|
|
|
command:
|
|
|
|
|
- chmod
|
2023-02-01 18:51:40 +01:00
|
|
|
- "777"
|
2023-02-01 16:00:52 +01:00
|
|
|
- /nextcloud-aio-elasticsearch
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: nextcloud-aio-elasticsearch
|
|
|
|
|
mountPath: /nextcloud-aio-elasticsearch
|
2022-12-22 12:29:31 +00:00
|
|
|
containers:
|
|
|
|
|
- env:
|
|
|
|
|
- name: ES_JAVA_OPTS
|
2025-02-04 18:05:09 +01:00
|
|
|
value: "{{ .Values.FULLTEXTSEARCH_JAVA_OPTIONS | default "-Xms512M -Xmx512M" }}"
|
2023-09-12 08:46:20 +00:00
|
|
|
- name: FULLTEXTSEARCH_PASSWORD
|
|
|
|
|
value: "{{ .Values.FULLTEXTSEARCH_PASSWORD }}"
|
2022-12-22 12:29:31 +00:00
|
|
|
- name: TZ
|
|
|
|
|
value: "{{ .Values.TIMEZONE }}"
|
2023-07-28 09:08:22 +00:00
|
|
|
- name: bootstrap.memory_lock
|
2025-12-10 13:39:37 +00:00
|
|
|
value: "false"
|
2023-07-28 09:08:22 +00:00
|
|
|
- name: cluster.name
|
|
|
|
|
value: nextcloud-aio
|
2022-12-22 12:29:31 +00:00
|
|
|
- name: discovery.type
|
|
|
|
|
value: single-node
|
2023-07-28 09:08:22 +00:00
|
|
|
- name: http.port
|
|
|
|
|
value: "9200"
|
2025-08-11 12:01:50 +00:00
|
|
|
- name: logger.level
|
2023-07-28 09:08:22 +00:00
|
|
|
value: WARN
|
|
|
|
|
- name: xpack.license.self_generated.type
|
|
|
|
|
value: basic
|
|
|
|
|
- name: xpack.security.enabled
|
|
|
|
|
value: "false"
|
2025-12-10 13:39:37 +00:00
|
|
|
image: ghcr.io/nextcloud-releases/aio-fulltextsearch:20251210_133359
|
2024-12-16 10:40:10 +00:00
|
|
|
readinessProbe:
|
|
|
|
|
exec:
|
|
|
|
|
command:
|
|
|
|
|
- /healthcheck.sh
|
|
|
|
|
failureThreshold: 5
|
|
|
|
|
initialDelaySeconds: 60
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
timeoutSeconds: 5
|
|
|
|
|
livenessProbe:
|
|
|
|
|
exec:
|
|
|
|
|
command:
|
|
|
|
|
- /healthcheck.sh
|
|
|
|
|
failureThreshold: 5
|
|
|
|
|
initialDelaySeconds: 60
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
timeoutSeconds: 5
|
2022-12-22 12:29:31 +00:00
|
|
|
name: nextcloud-aio-fulltextsearch
|
2023-02-02 15:44:37 +01:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 9200
|
2023-07-20 13:54:51 +00:00
|
|
|
protocol: TCP
|
2022-12-22 12:29:31 +00:00
|
|
|
volumeMounts:
|
|
|
|
|
- mountPath: /usr/share/elasticsearch/data
|
|
|
|
|
name: nextcloud-aio-elasticsearch
|
|
|
|
|
volumes:
|
|
|
|
|
- name: nextcloud-aio-elasticsearch
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: nextcloud-aio-elasticsearch
|
|
|
|
|
{{- end }}
|