- SearXNG deployment in data namespace (free, no-tracking web search) - sol-config: SearXNG URL, research config, identity agent, updated system prompt (DM search rules, research mode, silence, hard rules) - sol-deployment: debug logging (RUST_LOG=sol=debug), full image path - opensearch: tolerate missing prometheus-exporter plugin on OS 3
64 lines
1.8 KiB
YAML
64 lines
1.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: opensearch
|
|
namespace: data
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: opensearch
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: opensearch
|
|
spec:
|
|
securityContext:
|
|
fsGroup: 1000
|
|
initContainers:
|
|
- name: sysctl
|
|
image: busybox
|
|
command: ["sysctl", "-w", "vm.max_map_count=262144"]
|
|
securityContext:
|
|
privileged: true
|
|
containers:
|
|
- name: opensearch
|
|
image: opensearchproject/opensearch:3
|
|
command: ["sh", "-c"]
|
|
args: ["opensearch-plugin install --batch prometheus-exporter || true; /usr/share/opensearch/opensearch-docker-entrypoint.sh"]
|
|
ports:
|
|
- name: http
|
|
containerPort: 9200
|
|
protocol: TCP
|
|
- name: transport
|
|
containerPort: 9300
|
|
protocol: TCP
|
|
env:
|
|
- name: discovery.type
|
|
value: single-node
|
|
- name: OPENSEARCH_JAVA_OPTS
|
|
value: "-Xms1g -Xmx1536m"
|
|
- name: DISABLE_SECURITY_PLUGIN
|
|
value: "true"
|
|
- name: plugins.ml_commons.only_run_on_ml_node
|
|
value: "false"
|
|
- name: plugins.ml_commons.native_memory_threshold
|
|
value: "90"
|
|
- name: plugins.ml_commons.model_access_control_enabled
|
|
value: "false"
|
|
- name: plugins.ml_commons.allow_registering_model_via_url
|
|
value: "true"
|
|
resources:
|
|
limits:
|
|
memory: 2Gi
|
|
requests:
|
|
memory: 1Gi
|
|
cpu: 100m
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /usr/share/opensearch/data
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: opensearch-data
|