Skip to content

Commit

Permalink
upd redis
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed Jan 8, 2025
1 parent b355c7a commit 58572b5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/apps/redis/templates/dashboard-resourcemap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ rules:
resourceNames:
- "{{ .Release.Name }}-auth"
verbs: ["get", "list", "watch"]
- apiGroups:
- cozystack.io
resources:
- workloadmonitors
resourceNames:
- {{ .Release.Name }}-redis
- {{ .Release.Name }}-sentinel
verbs: ["get", "list", "watch"]
31 changes: 31 additions & 0 deletions packages/apps/redis/templates/redisfailover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,34 @@ spec:
auth:
secretPath: {{ .Release.Name }}-auth
{{- end }}

---
apiVersion: cozystack.io/v1alpha1
kind: WorkloadMonitor
metadata:
name: {{ $.Release.Name }}-redis
namespace: {{ $.Release.Namespace }}
spec:
minReplicas: 1
replicas: {{ .Values.replicas }}
kind: redis
type: redis
selector:
app.kubernetes.io/component: redis
app.kubernetes.io/instance: {{ $.Release.Name }}
version: 1.30.1
---
apiVersion: cozystack.io/v1alpha1
kind: WorkloadMonitor
metadata:
name: {{ $.Release.Name }}-sentinel
namespace: {{ $.Release.Namespace }}
spec:
minReplicas: 2
replicas: 3
kind: redis
type: sentinel
selector:
app.kubernetes.io/component: sentinel
app.kubernetes.io/instance: {{ $.Release.Name }}
version: 1.30.1

0 comments on commit 58572b5

Please sign in to comment.