Posts

Showing posts from July, 2023

How to create ISM policy and rotate logs in opensearch

  { "id" : "k8s_ingress-nginx" , "policy" : { "policy_id" : "k8s_ingress-nginx" , "description" : "Move indices into a cold state after 30 days and delete them after a year." , "default_state" : "hot" , "states" : [ { "name" : "hot" , "actions" : [ { "replica_count" : { "number_of_replicas" : 1 } } ] , "transitions" : [ { "state_name" : "cold" , "conditions" : { "min_index_age" : "3d" } ...

topology Spread Constraints

  apiVersion : apps/v1 kind : Deployment metadata : name : {{ .Values.deployment.name }} annotations : configmap.reloader.stakater.com/reload : {{ .Values.configMap.name }} spec : selector : matchLabels : app : cms replicas : {{ .Values.replicaCount }} template : metadata : name : cms labels : app : cms annotations : firth/job.0 : "cms" firth/port.0 : "30080" firth/path.0 : "/actuator/prometheus" spec : topologySpreadConstraints : - maxSkew : 1 topologyKey : kubernetes.io/hostname whenUnsatisfiable : ScheduleAnyway labelSelector : matchLabels : app : cms containers : - name : cms image : " {{ .Values.image.repository }} : {{ .Values.image.tag }} " imagePullPolicy : Always readinessProbe : httpGet : path : /health/liveness ...