add redis
This commit is contained in:
		@@ -0,0 +1,32 @@
 | 
			
		||||
apiVersion: redis.redis.opstreelabs.in/v1beta2
 | 
			
		||||
kind: RedisReplication
 | 
			
		||||
metadata:
 | 
			
		||||
  name: redis-replication-stalwart
 | 
			
		||||
  namespace: {{ .Release.Namespace }}
 | 
			
		||||
  labels:
 | 
			
		||||
    app.kubernetes.io/name: redis-replication-stalwart
 | 
			
		||||
    app.kubernetes.io/instance: {{ .Release.Name }}
 | 
			
		||||
    app.kubernetes.io/part-of: {{ .Release.Name }}
 | 
			
		||||
spec:
 | 
			
		||||
  clusterSize: 3
 | 
			
		||||
  podSecurityContext:
 | 
			
		||||
    runAsUser: 1000
 | 
			
		||||
    fsGroup: 1000
 | 
			
		||||
  kubernetesConfig:
 | 
			
		||||
    image: quay.io/opstree/redis:v8.0.3
 | 
			
		||||
    imagePullPolicy: IfNotPresent
 | 
			
		||||
    resources:
 | 
			
		||||
      requests:
 | 
			
		||||
        cpu: 50m
 | 
			
		||||
        memory: 128Mi
 | 
			
		||||
  storage:
 | 
			
		||||
    volumeClaimTemplate:
 | 
			
		||||
      spec:
 | 
			
		||||
        storageClassName: ceph-block
 | 
			
		||||
        accessModes: ["ReadWriteOnce"]
 | 
			
		||||
        resources:
 | 
			
		||||
          requests:
 | 
			
		||||
            storage: 1Gi
 | 
			
		||||
  redisExporter:
 | 
			
		||||
    enabled: true
 | 
			
		||||
    image: quay.io/opstree/redis-exporter:v1.48.0
 | 
			
		||||
@@ -0,0 +1,19 @@
 | 
			
		||||
apiVersion: monitoring.coreos.com/v1
 | 
			
		||||
kind: ServiceMonitor
 | 
			
		||||
metadata:
 | 
			
		||||
  name: redis-replication-stalwart
 | 
			
		||||
  namespace: {{ .Release.Namespace }}
 | 
			
		||||
  labels:
 | 
			
		||||
    app.kubernetes.io/name: redis-replication-stalwart
 | 
			
		||||
    app.kubernetes.io/instance: {{ .Release.Name }}
 | 
			
		||||
    app.kubernetes.io/part-of: {{ .Release.Name }}
 | 
			
		||||
    redis-operator: "true"
 | 
			
		||||
    env: production
 | 
			
		||||
spec:
 | 
			
		||||
  selector:
 | 
			
		||||
    matchLabels:
 | 
			
		||||
      redis_setup_type: replication
 | 
			
		||||
  endpoints:
 | 
			
		||||
    - port: redis-exporter
 | 
			
		||||
      interval: 30s
 | 
			
		||||
      scrapeTimeout: 10s
 | 
			
		||||
		Reference in New Issue
	
	Block a user