mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-21 18:41:10 +00:00
- upd redis - update kubernetes app to use workloadmonitors - upd kubernetes - fix version <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added `WorkloadMonitor` resources for various components including Kubernetes clusters, Redis, Sentinel, and SeaweedFS. - Introduced monitoring capabilities for `alerta`, `alertmanager`, `grafana`, and `vlogs` services. - Enhanced RBAC configurations to support new monitoring resources across multiple API groups. - **Improvements** - Updated metadata and labeling for virtual machine templates. - Added dynamic resource naming based on release and group names. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
27 lines
570 B
YAML
27 lines
570 B
YAML
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: {{ .Release.Name }}-dashboard-resources
|
|
rules:
|
|
- apiGroups:
|
|
- cozystack.io
|
|
resources:
|
|
- workloadmonitors
|
|
resourceNames:
|
|
- {{ .Release.Name }}
|
|
verbs: ["get", "list", "watch"]
|
|
---
|
|
apiVersion: cozystack.io/v1alpha1
|
|
kind: WorkloadMonitor
|
|
metadata:
|
|
name: {{ $.Release.Name }}
|
|
namespace: {{ $.Release.Namespace }}
|
|
spec:
|
|
replicas: 1
|
|
minReplicas: 1
|
|
kind: virtual-machine
|
|
type: virtual-machine
|
|
selector:
|
|
vm.kubevirt.io/name: {{ $.Release.Name }}
|
|
version: {{ $.Chart.Version }}
|