Compare commits
6 Commits
redis-repl
...
generic-de
| Author | SHA1 | Date | |
|---|---|---|---|
| 7379fbefa2 | |||
|
38ace21ae6
|
|||
| 9a434ef91c | |||
| d4eeea5c99 | |||
| 510c575424 | |||
| 10d67f205d |
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: generic-device-plugin
|
name: generic-device-plugin
|
||||||
version: 0.20.7
|
version: 0.20.8
|
||||||
description: Generic Device Plugin
|
description: Generic Device Plugin
|
||||||
keywords:
|
keywords:
|
||||||
- generic-device-plugin
|
- generic-device-plugin
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ name: generic-device-plugin
|
|||||||
# -- Default image
|
# -- Default image
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/squat/generic-device-plugin
|
repository: ghcr.io/squat/generic-device-plugin
|
||||||
tag: latest@sha256:aa0571c7f461fb99747ada00f2de69eb856dcbbc0e87965fffe37a15f7bc006f
|
tag: latest@sha256:29a59a330b93ed4173109839329796a39c528d0d0afeee76291b33787ae19001
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
|
|
||||||
# -- Domain used by devices for identifcation
|
# -- Domain used by devices for identifcation
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: redis-replication
|
name: redis-replication
|
||||||
version: 0.1.0
|
version: 0.5.0
|
||||||
description: Redis Replication with Sentinel
|
description: Redis Replication with Sentinel
|
||||||
keywords:
|
keywords:
|
||||||
- redis-operator
|
- redis-operator
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# redis-replication
|
# redis-replication
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Redis Replication with Sentinel
|
Redis Replication with Sentinel
|
||||||
|
|
||||||
@@ -22,16 +22,17 @@ Redis Replication with Sentinel
|
|||||||
| additionalLabels | object | `{}` | Add additional labels |
|
| additionalLabels | object | `{}` | Add additional labels |
|
||||||
| existingSecret | object | `{"enabled":false,"key":"password","name":"secret-name"}` | Password |
|
| existingSecret | object | `{"enabled":false,"key":"password","name":"secret-name"}` | Password |
|
||||||
| namespaceOverride | string | `""` | Override the namespace of the chart |
|
| namespaceOverride | string | `""` | Override the namespace of the chart |
|
||||||
| redisReplication | object | `{"clusterSize":3,"image":{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis","tag":"v8.4.0"},"podSecurityContext":{"fsGroup":1000,"runAsUser":1000},"redisExporter":{"enabled":true,"image":{"repository":"quay.io/opstree/redis-exporter","tag":"v1.80.1"}},"resources":{"requests":{"cpu":"10m","memory":"128Mi"}},"volumeClaimTemplate":{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"1Gi"}},"storageClassName":"ceph-block"}}}` | Redis Replication settings |
|
| redisReplication | object | `{"clusterSize":3,"image":{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis","tag":"v8.4.0"},"podSecurityContext":{"fsGroup":1000,"runAsUser":1000},"redisExporter":{"enabled":true,"image":{"repository":"quay.io/opstree/redis-exporter","tag":"v1.80.1"},"serviceMonitor":{"enabled":true,"extraLabels":{},"interval":"30s","scrapeTimeout":"10s"}},"resources":{"requests":{"cpu":"10m","memory":"32Mi"}},"volumeClaimTemplate":{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"1Gi"}},"storageClassName":"ceph-block"}}}` | Redis Replication settings |
|
||||||
| redisReplication.image | object | `{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis","tag":"v8.4.0"}` | Image |
|
| redisReplication.image | object | `{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis","tag":"v8.4.0"}` | Image |
|
||||||
| redisReplication.podSecurityContext | object | `{"fsGroup":1000,"runAsUser":1000}` | Security |
|
| redisReplication.podSecurityContext | object | `{"fsGroup":1000,"runAsUser":1000}` | Security |
|
||||||
| redisReplication.redisExporter | object | `{"enabled":true,"image":{"repository":"quay.io/opstree/redis-exporter","tag":"v1.80.1"}}` | Metrics |
|
| redisReplication.redisExporter | object | `{"enabled":true,"image":{"repository":"quay.io/opstree/redis-exporter","tag":"v1.80.1"},"serviceMonitor":{"enabled":true,"extraLabels":{},"interval":"30s","scrapeTimeout":"10s"}}` | Metrics |
|
||||||
| redisReplication.resources | object | `{"requests":{"cpu":"10m","memory":"128Mi"}}` | Resources |
|
| redisReplication.resources | object | `{"requests":{"cpu":"10m","memory":"32Mi"}}` | Resources |
|
||||||
| redisReplication.volumeClaimTemplate | object | `{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"1Gi"}},"storageClassName":"ceph-block"}}` | Storage |
|
| redisReplication.volumeClaimTemplate | object | `{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"1Gi"}},"storageClassName":"ceph-block"}}` | Storage |
|
||||||
| redisSentinel | object | `{"clusterSize":3,"enabled":false,"image":{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis-sentinel","tag":"v8.4.0"},"podSecurityContext":{"fsGroup":1000,"runAsUser":1000},"resources":{"requests":{"cpu":"10m","memory":"128Mi"}}}` | Redis Sentinel settings |
|
| redisSentinel | object | `{"clusterSize":3,"enabled":false,"image":{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis-sentinel","tag":"v8.4.0"},"podSecurityContext":{"fsGroup":1000,"runAsUser":1000},"redisExporter":{"enabled":true,"image":{"repository":"quay.io/opstree/redis-exporter","tag":"v1.80.1"},"serviceMonitor":{"enabled":true,"extraLabels":{},"interval":"30s","scrapeTimeout":"10s"}},"resources":{"requests":{"cpu":"10m","memory":"32Mi"}}}` | Redis Sentinel settings |
|
||||||
| redisSentinel.image | object | `{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis-sentinel","tag":"v8.4.0"}` | Image |
|
| redisSentinel.image | object | `{"pullPolicy":"IfNotPresent","repository":"quay.io/opstree/redis-sentinel","tag":"v8.4.0"}` | Image |
|
||||||
| redisSentinel.podSecurityContext | object | `{"fsGroup":1000,"runAsUser":1000}` | Security |
|
| redisSentinel.podSecurityContext | object | `{"fsGroup":1000,"runAsUser":1000}` | Security |
|
||||||
| redisSentinel.resources | object | `{"requests":{"cpu":"10m","memory":"128Mi"}}` | Resources |
|
| redisSentinel.redisExporter | object | `{"enabled":true,"image":{"repository":"quay.io/opstree/redis-exporter","tag":"v1.80.1"},"serviceMonitor":{"enabled":true,"extraLabels":{},"interval":"30s","scrapeTimeout":"10s"}}` | Metrics |
|
||||||
|
| redisSentinel.resources | object | `{"requests":{"cpu":"10m","memory":"32Mi"}}` | Resources |
|
||||||
| replicationNameOverride | string | `""` | Override the name of the resources |
|
| replicationNameOverride | string | `""` | Override the name of the resources |
|
||||||
| sentinelNameOverride | string | `""` | |
|
| sentinelNameOverride | string | `""` | |
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ spec:
|
|||||||
|
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
{{- with .Values.redisReplication.podSecurityContext }}
|
{{- with .Values.redisReplication.podSecurityContext }}
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
kubernetesConfig:
|
kubernetesConfig:
|
||||||
@@ -19,7 +19,7 @@ spec:
|
|||||||
imagePullPolicy: {{ .Values.redisReplication.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.redisReplication.image.pullPolicy }}
|
||||||
resources:
|
resources:
|
||||||
{{- with .Values.redisReplication.resources }}
|
{{- with .Values.redisReplication.resources }}
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Values.existingSecret.enabled }}
|
{{ if .Values.existingSecret.enabled }}
|
||||||
@@ -31,7 +31,7 @@ spec:
|
|||||||
storage:
|
storage:
|
||||||
volumeClaimTemplate:
|
volumeClaimTemplate:
|
||||||
{{- with .Values.redisReplication.volumeClaimTemplate }}
|
{{- with .Values.redisReplication.volumeClaimTemplate }}
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
redisExporter:
|
redisExporter:
|
||||||
|
|||||||
@@ -38,4 +38,9 @@ spec:
|
|||||||
name: {{ .Values.existingSecret.name }}
|
name: {{ .Values.existingSecret.name }}
|
||||||
key: {{ .Values.existingSecret.key }}
|
key: {{ .Values.existingSecret.key }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
redisExporter:
|
||||||
|
enabled: {{ .Values.redisSentinel.redisExporter.enabled }}
|
||||||
|
image: "{{ .Values.redisSentinel.redisExporter.image.repository }}:{{ .Values.redisSentinel.redisExporter.image.tag }}"
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
49
charts/redis-replication/templates/service-monitor.yaml
Normal file
49
charts/redis-replication/templates/service-monitor.yaml
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
{{- if .Values.redisReplication.redisExporter.serviceMonitor.enabled }}
|
||||||
|
---
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: {{ include "redis.replicationName" . }}
|
||||||
|
namespace: {{ include "redis.namespace" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "redis.labels" . | nindent 4 }}
|
||||||
|
{{- include "redis.replicationSelectorLabels" . | nindent 4 }}
|
||||||
|
{{- with .Values.redisReplication.redisExporter.serviceMonitor.extraLabels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: {{ include "redis.replicationName" . }}
|
||||||
|
redis_setup_type: replication
|
||||||
|
role: replication
|
||||||
|
endpoints:
|
||||||
|
- port: redis-exporter
|
||||||
|
interval: {{ .Values.redisReplication.redisExporter.serviceMonitor.interval }}
|
||||||
|
scrapeTimeout: {{ .Values.redisReplication.redisExporter.serviceMonitor.scrapeTimeout }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if and (.Values.redisSentinel.redisExporter.serviceMonitor.enabled) (.Values.redisSentinel.enabled) }}
|
||||||
|
---
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: {{ include "redis.sentinelName" . }}
|
||||||
|
namespace: {{ include "redis.namespace" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "redis.labels" . | nindent 4 }}
|
||||||
|
{{- include "redis.sentinelSelectorLabels" . | nindent 4 }}
|
||||||
|
{{- with .Values.redisSentinel.redisExporter.serviceMonitor.extraLabels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: {{ include "redis.sentinelName" . }}
|
||||||
|
redis_setup_type: sentinel
|
||||||
|
role: sentinel
|
||||||
|
endpoints:
|
||||||
|
- port: sentinel-client
|
||||||
|
interval: {{ .Values.redisSentinel.redisExporter.serviceMonitor.interval }}
|
||||||
|
scrapeTimeout: {{ .Values.redisSentinel.redisExporter.serviceMonitor.scrapeTimeout }}
|
||||||
|
{{- end }}
|
||||||
@@ -20,8 +20,8 @@ redisReplication:
|
|||||||
|
|
||||||
# -- Security
|
# -- Security
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
runAsUser: 1000
|
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
|
runAsUser: 1000
|
||||||
|
|
||||||
# -- Image
|
# -- Image
|
||||||
image:
|
image:
|
||||||
@@ -33,16 +33,17 @@ redisReplication:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 128Mi
|
memory: 32Mi
|
||||||
|
|
||||||
# -- Storage
|
# -- Storage
|
||||||
volumeClaimTemplate:
|
volumeClaimTemplate:
|
||||||
spec:
|
spec:
|
||||||
storageClassName: ceph-block
|
accessModes:
|
||||||
accessModes: ["ReadWriteOnce"]
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
|
storageClassName: ceph-block
|
||||||
|
|
||||||
# -- Metrics
|
# -- Metrics
|
||||||
redisExporter:
|
redisExporter:
|
||||||
@@ -50,6 +51,11 @@ redisReplication:
|
|||||||
image:
|
image:
|
||||||
repository: quay.io/opstree/redis-exporter
|
repository: quay.io/opstree/redis-exporter
|
||||||
tag: v1.80.1
|
tag: v1.80.1
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: true
|
||||||
|
interval: 30s
|
||||||
|
scrapeTimeout: 10s
|
||||||
|
extraLabels: {}
|
||||||
|
|
||||||
# -- Redis Sentinel settings
|
# -- Redis Sentinel settings
|
||||||
redisSentinel:
|
redisSentinel:
|
||||||
@@ -71,4 +77,16 @@ redisSentinel:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 128Mi
|
memory: 32Mi
|
||||||
|
|
||||||
|
# -- Metrics
|
||||||
|
redisExporter:
|
||||||
|
enabled: true
|
||||||
|
image:
|
||||||
|
repository: quay.io/opstree/redis-exporter
|
||||||
|
tag: v1.80.1
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: true
|
||||||
|
interval: 30s
|
||||||
|
scrapeTimeout: 10s
|
||||||
|
extraLabels: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user