diff --git a/deploy/jiniaslog/monolith/redis/redis-exporter.yml b/deploy/jiniaslog/monolith/redis/redis-exporter.yml deleted file mode 100644 index 5bb695db..00000000 --- a/deploy/jiniaslog/monolith/redis/redis-exporter.yml +++ /dev/null @@ -1,114 +0,0 @@ -#--- -## Source: prometheus-redis-exporter/templates/serviceaccount.yaml -#apiVersion: v1 -#kind: ServiceAccount -#metadata: -# name: redis-exporter-prometheus-redis-exporter -# labels: -# app.kubernetes.io/name: prometheus-redis-exporter -# app.kubernetes.io/instance: redis-exporter -# app.kubernetes.io/version: "v1.66.0" -#--- -## Source: prometheus-redis-exporter/templates/role.yaml -#apiVersion: rbac.authorization.k8s.io/v1 -#kind: Role -#metadata: -# name: redis-exporter-prometheus-redis-exporter -# labels: -# app.kubernetes.io/name: prometheus-redis-exporter -# app.kubernetes.io/instance: redis-exporter -# app.kubernetes.io/version: "v1.66.0" -#rules: -#- apiGroups: ['extensions'] -# resources: ['podsecuritypolicies'] -# verbs: ['use'] -# resourceNames: [redis-exporter-prometheus-redis-exporter] -#--- -## Source: prometheus-redis-exporter/templates/rolebinding.yaml -#apiVersion: rbac.authorization.k8s.io/v1 -#kind: RoleBinding -#metadata: -# name: redis-exporter-prometheus-redis-exporter -# labels: -# app.kubernetes.io/name: prometheus-redis-exporter -# app.kubernetes.io/instance: redis-exporter -# app.kubernetes.io/version: "v1.66.0" -#roleRef: -# apiGroup: rbac.authorization.k8s.io -# kind: Role -# name: redis-exporter-prometheus-redis-exporter -#subjects: -#- kind: ServiceAccount -# name: redis-exporter-prometheus-redis-exporter -#--- -## Source: prometheus-redis-exporter/templates/service.yaml -#apiVersion: v1 -#kind: Service -#metadata: -# name: redis-exporter-prometheus-redis-exporter -# labels: -# app.kubernetes.io/name: prometheus-redis-exporter -# app.kubernetes.io/instance: redis-exporter -# app.kubernetes.io/version: "v1.66.0" -# prometheus.io/scrape: "true" -# prometheus.io/port: "9121" -# annotations: -# {} -#spec: -# type: ClusterIP -# ports: -# - name: redis-exporter -# port: 9121 -# targetPort: exporter-port -# protocol: TCP -# selector: -# app.kubernetes.io/name: prometheus-redis-exporter -# app.kubernetes.io/instance: redis-exporter -#--- -## Source: prometheus-redis-exporter/templates/deployment.yaml -#apiVersion: apps/v1 -#kind: Deployment -#metadata: -# name: redis-exporter-prometheus-redis-exporter -# labels: -# app.kubernetes.io/name: prometheus-redis-exporter -# app.kubernetes.io/instance: redis-exporter -# app.kubernetes.io/version: "v1.66.0" -# annotations: -# {} -#spec: -# replicas: 1 -# selector: -# matchLabels: -# app.kubernetes.io/name: prometheus-redis-exporter -# app.kubernetes.io/instance: redis-exporter -# template: -# metadata: -# annotations: -# {} -# labels: -# app.kubernetes.io/name: prometheus-redis-exporter -# app.kubernetes.io/instance: redis-exporter -# app.kubernetes.io/version: "v1.66.0" -# spec: -# serviceAccountName: redis-exporter-prometheus-redis-exporter -# containers: -# - name: prometheus-redis-exporter -# image: "oliver006/redis_exporter:v1.66.0" -# imagePullPolicy: IfNotPresent -# ports: -# - name: exporter-port -# containerPort: 9121 -# env: -# - name: REDIS_ADDR -# value: redis://jinias-redis-ha:6379 -# livenessProbe: -# httpGet: -# path: / -# port: exporter-port -# readinessProbe: -# httpGet: -# path: / -# port: exporter-port -# resources: -# {} diff --git a/deploy/jiniaslog/monolith/redis/redis.yml b/deploy/jiniaslog/monolith/redis/redis.yml index 1317d544..658d8846 100644 --- a/deploy/jiniaslog/monolith/redis/redis.yml +++ b/deploy/jiniaslog/monolith/redis/redis.yml @@ -25,7 +25,7 @@ data: port 6379 rename-command FLUSHDB "" rename-command FLUSHALL "" - maxmemory 0 + maxmemory 1gb maxmemory-policy volatile-lru min-replicas-max-lag 5 min-replicas-to-write 1