mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-21 20:41:26 +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>
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
---
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
kind: Cluster
|
|
metadata:
|
|
name: {{ .Release.Name }}
|
|
spec:
|
|
instances: {{ .Values.replicas }}
|
|
enableSuperuserAccess: true
|
|
|
|
postgresql:
|
|
parameters:
|
|
max_wal_senders: "30"
|
|
{{- with .Values.postgresql.parameters.max_connections }}
|
|
max_connections: "{{ . }}"
|
|
{{- end }}
|
|
|
|
minSyncReplicas: {{ .Values.quorum.minSyncReplicas }}
|
|
maxSyncReplicas: {{ .Values.quorum.maxSyncReplicas }}
|
|
|
|
monitoring:
|
|
enablePodMonitor: true
|
|
|
|
storage:
|
|
size: {{ required ".Values.size is required" .Values.size }}
|
|
{{- with .Values.storageClass }}
|
|
storageClass: {{ . }}
|
|
{{- end }}
|
|
|
|
inheritedMetadata:
|
|
labels:
|
|
policy.cozystack.io/allow-to-apiserver: "true"
|
|
---
|
|
apiVersion: cozystack.io/v1alpha1
|
|
kind: WorkloadMonitor
|
|
metadata:
|
|
name: {{ $.Release.Name }}
|
|
spec:
|
|
replicas: {{ .Values.replicas }}
|
|
minReplicas: 1
|
|
kind: postgres
|
|
type: postgres
|
|
selector:
|
|
cnpg.io/cluster: {{ .Release.Name }}
|
|
cnpg.io/podRole: instance
|
|
version: {{ $.Chart.Version }}
|