2024-05-23 21:18:15 +00:00
|
|
|
{{- if .Values.opensearch.nodeSets }}
|
|
|
|
apiVersion: opensearch.opster.io/v1
|
|
|
|
kind: OpenSearchISMPolicy
|
|
|
|
metadata:
|
|
|
|
name: {{ template "kubezero-lib.fullname" . }}-ism-default-retention
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
{{ include "kubezero-lib.labels" . | nindent 4 }}
|
|
|
|
spec:
|
|
|
|
opensearchCluster:
|
|
|
|
name: {{ template "kubezero-lib.fullname" . }}
|
|
|
|
description: Default KubeZero retention policy
|
|
|
|
defaultState: hot
|
|
|
|
states:
|
|
|
|
- name: hot
|
|
|
|
actions:
|
|
|
|
- replicaCount:
|
|
|
|
numberOfReplicas: 1
|
|
|
|
transitions:
|
|
|
|
- stateName: warm
|
|
|
|
conditions:
|
|
|
|
minIndexAge: "7d"
|
|
|
|
- name: warm
|
|
|
|
actions:
|
|
|
|
- replicaCount:
|
|
|
|
numberOfReplicas: 0
|
|
|
|
transitions:
|
|
|
|
- stateName: delete
|
|
|
|
conditions:
|
|
|
|
minIndexAge: "32d"
|
|
|
|
- name: delete
|
|
|
|
actions:
|
|
|
|
- delete: {}
|
2024-06-27 15:14:02 +00:00
|
|
|
ismTemplate:
|
|
|
|
indexPatterns:
|
|
|
|
- "logstash-*"
|
|
|
|
- "jaeger-*"
|
2024-07-18 18:58:14 +00:00
|
|
|
- "otel-v1-apm-span-*"
|
2024-05-23 21:18:15 +00:00
|
|
|
{{- end }}
|