2026-01-09 23:27:07 -03:00
|
|
|
# services/logging/opensearch-observability-setup-job.yaml
|
|
|
|
|
apiVersion: batch/v1
|
|
|
|
|
kind: Job
|
|
|
|
|
metadata:
|
2026-01-10 00:12:55 -03:00
|
|
|
name: opensearch-observability-setup-2
|
2026-01-09 23:27:07 -03:00
|
|
|
namespace: logging
|
|
|
|
|
spec:
|
|
|
|
|
backoffLimit: 3
|
|
|
|
|
ttlSecondsAfterFinished: 3600
|
|
|
|
|
template:
|
|
|
|
|
spec:
|
|
|
|
|
restartPolicy: OnFailure
|
|
|
|
|
nodeSelector:
|
|
|
|
|
node-role.kubernetes.io/worker: "true"
|
|
|
|
|
hardware: rpi5
|
|
|
|
|
affinity:
|
|
|
|
|
nodeAffinity:
|
|
|
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
|
nodeSelectorTerms:
|
|
|
|
|
- matchExpressions:
|
|
|
|
|
- key: hardware
|
|
|
|
|
operator: In
|
|
|
|
|
values:
|
|
|
|
|
- rpi5
|
|
|
|
|
containers:
|
|
|
|
|
- name: setup
|
|
|
|
|
image: python:3.11-alpine
|
|
|
|
|
command: ["python", "/scripts/seed.py"]
|
|
|
|
|
env:
|
|
|
|
|
- name: OSD_URL
|
|
|
|
|
value: http://opensearch-dashboards.logging.svc.cluster.local:5601
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: scripts
|
|
|
|
|
mountPath: /scripts
|
|
|
|
|
readOnly: true
|
|
|
|
|
- name: objects
|
|
|
|
|
mountPath: /config
|
|
|
|
|
readOnly: true
|
|
|
|
|
volumes:
|
|
|
|
|
- name: scripts
|
|
|
|
|
configMap:
|
|
|
|
|
name: opensearch-observability-script
|
|
|
|
|
- name: objects
|
|
|
|
|
configMap:
|
|
|
|
|
name: opensearch-observability-objects
|