Compare commits
9 Commits
cloudflare
...
renovate/u
| Author | SHA1 | Date | |
|---|---|---|---|
|
c6d29c0415
|
|||
| ed43f11723 | |||
| 75649b575e | |||
| 2574808017 | |||
| b86adc263c | |||
| 0c3cd87d11 | |||
| 5be7f9fb44 | |||
|
db9509ca97
|
|||
| 972bf33a3d |
@@ -1,6 +1,6 @@
|
|||||||
# generic-device-plugin
|
# generic-device-plugin
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Generic Device Plugin
|
Generic Device Plugin
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ Generic Device Plugin
|
|||||||
| config | object | `{"data":"devices:\n - name: serial\n groups:\n - paths:\n - path: /dev/ttyUSB*\n - paths:\n - path: /dev/ttyACM*\n - paths:\n - path: /dev/tty.usb*\n - paths:\n - path: /dev/cu.*\n - paths:\n - path: /dev/cuaU*\n - paths:\n - path: /dev/rfcomm*\n - name: video\n groups:\n - paths:\n - path: /dev/video0\n - name: fuse\n groups:\n - count: 10\n paths:\n - path: /dev/fuse\n - name: audio\n groups:\n - count: 10\n paths:\n - path: /dev/snd\n - name: capture\n groups:\n - paths:\n - path: /dev/snd/controlC0\n - path: /dev/snd/pcmC0D0c\n - paths:\n - path: /dev/snd/controlC1\n mountPath: /dev/snd/controlC0\n - path: /dev/snd/pcmC1D0c\n mountPath: /dev/snd/pcmC0D0c\n - paths:\n - path: /dev/snd/controlC2\n mountPath: /dev/snd/controlC0\n - path: /dev/snd/pcmC2D0c\n mountPath: /dev/snd/pcmC0D0c\n - paths:\n - path: /dev/snd/controlC3\n mountPath: /dev/snd/controlC0\n - path: /dev/snd/pcmC3D0c\n mountPath: /dev/snd/pcmC0D0c\n","enabled":true}` | Config map |
|
| config | object | `{"data":"devices:\n - name: serial\n groups:\n - paths:\n - path: /dev/ttyUSB*\n - paths:\n - path: /dev/ttyACM*\n - paths:\n - path: /dev/tty.usb*\n - paths:\n - path: /dev/cu.*\n - paths:\n - path: /dev/cuaU*\n - paths:\n - path: /dev/rfcomm*\n - name: video\n groups:\n - paths:\n - path: /dev/video0\n - name: fuse\n groups:\n - count: 10\n paths:\n - path: /dev/fuse\n - name: audio\n groups:\n - count: 10\n paths:\n - path: /dev/snd\n - name: capture\n groups:\n - paths:\n - path: /dev/snd/controlC0\n - path: /dev/snd/pcmC0D0c\n - paths:\n - path: /dev/snd/controlC1\n mountPath: /dev/snd/controlC0\n - path: /dev/snd/pcmC1D0c\n mountPath: /dev/snd/pcmC0D0c\n - paths:\n - path: /dev/snd/controlC2\n mountPath: /dev/snd/controlC0\n - path: /dev/snd/pcmC2D0c\n mountPath: /dev/snd/pcmC0D0c\n - paths:\n - path: /dev/snd/controlC3\n mountPath: /dev/snd/controlC0\n - path: /dev/snd/pcmC3D0c\n mountPath: /dev/snd/pcmC0D0c\n","enabled":true}` | Config map |
|
||||||
| config.data | string | See [values.yaml](./values.yaml) | generic-device-plugin config file [[ref]](https://github.com/squat/generic-device-plugin#usage) |
|
| config.data | string | See [values.yaml](./values.yaml) | generic-device-plugin config file [[ref]](https://github.com/squat/generic-device-plugin#usage) |
|
||||||
| deviceDomain | string | `"devic.es"` | Domain used by devices for identifcation |
|
| deviceDomain | string | `"devic.es"` | Domain used by devices for identifcation |
|
||||||
| image | object | `{"pullPolicy":"Always","repository":"ghcr.io/squat/generic-device-plugin","tag":"latest@sha256:2e0c0b78043d5f0885b99c9ac3c1506844c9645081740d2394ce6e23b168bfe8"}` | Default image |
|
| image | object | `{"pullPolicy":"Always","repository":"ghcr.io/squat/generic-device-plugin","tag":"latest@sha256:7bc1ecec8472be1e5cf1ce534f0438a1d48cc3e2b4997cee924dac4d3dbfc3d3"}` | Default image |
|
||||||
| name | string | `"generic-device-plugin"` | Name override of release |
|
| name | string | `"generic-device-plugin"` | Name override of release |
|
||||||
| resources | object | `{"requests":{"cpu":"50m","memory":"10Mi"}}` | Default resources |
|
| resources | object | `{"requests":{"cpu":"50m","memory":"10Mi"}}` | Default resources |
|
||||||
| service | object | `{"listenPort":8080}` | Service port |
|
| service | object | `{"listenPort":8080}` | Service port |
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: postgres-cluster
|
name: postgres-cluster
|
||||||
version: 7.12.1
|
version: 7.12.2
|
||||||
description: Cloudnative-pg Cluster
|
description: Cloudnative-pg Cluster
|
||||||
keywords:
|
keywords:
|
||||||
- database
|
- database
|
||||||
@@ -12,4 +12,4 @@ maintainers:
|
|||||||
- name: alexlebens
|
- name: alexlebens
|
||||||
icon: https://avatars.githubusercontent.com/u/100373852?s=48&v=4
|
icon: https://avatars.githubusercontent.com/u/100373852?s=48&v=4
|
||||||
# renovate: datasource=github-releases depName=cloudnative-pg/cloudnative-pg
|
# renovate: datasource=github-releases depName=cloudnative-pg/cloudnative-pg
|
||||||
appVersion: v1.29.0
|
appVersion: v1.29.1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: rclone-bucket
|
name: rclone-bucket
|
||||||
version: 0.9.1
|
version: 0.11.3
|
||||||
description: Rclone CronJob to replicate buckets
|
description: Rclone CronJob to replicate buckets
|
||||||
keywords:
|
keywords:
|
||||||
- rclone-bucket
|
- rclone-bucket
|
||||||
@@ -17,4 +17,4 @@ dependencies:
|
|||||||
version: 5.0.0
|
version: 5.0.0
|
||||||
icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/rclone.png
|
icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/rclone.png
|
||||||
# renovate: datasource=github-releases depName=rclone/rclone
|
# renovate: datasource=github-releases depName=rclone/rclone
|
||||||
appVersion: v1.74.0
|
appVersion: v1.74.1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# rclone-bucket
|
# rclone-bucket
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Rclone CronJob to replicate buckets
|
Rclone CronJob to replicate buckets
|
||||||
|
|
||||||
@@ -27,9 +27,10 @@ Rclone CronJob to replicate buckets
|
|||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| additionalLabels | object | `{}` | Add additional labels |
|
| additionalLabels | object | `{}` | Add additional labels |
|
||||||
| cronJob | object | `{"backoffLimit":3,"parallelism":1,"schedule":"0 0 * * *","suspend":false,"timeZone":"America/Chicago"}` | CronJob configuration |
|
| cronJob | object | `{"backoffLimit":3,"parallelism":1,"schedule":"0 0 * * *","suspend":false,"timeZone":"America/Chicago"}` | CronJob configuration |
|
||||||
| image | object | `{"pullPolicy":"IfNotPresent","repository":"rclone/rclone","tag":"1.74.0@sha256:d2e0e88359d0b2e67cfcd2c43d5405185eb8adfc207079df27c42da82c5207bc"}` | Default image |
|
| image | object | `{"pullPolicy":"IfNotPresent","repository":"rclone/rclone","tag":"1.74.1@sha256:eb8788b795f0009324e9572b0e2acb9b56885327c2746b07d67a9d3b893a6602"}` | Default image |
|
||||||
| metrics | object | `{"enabled":true}` | Metrics |
|
| metrics | object | `{"enabled":true}` | Metrics |
|
||||||
| nameOverride | string | `""` | Default pattern follows <pvcTarget>-backup |
|
| nameOverride | string | `""` | Default pattern follows <pvcTarget>-backup |
|
||||||
|
| prometheusRule | object | `{"enabled":true}` | Prometheus Rule |
|
||||||
| prune | object | `{"ageToPrune":"90d","enabled":false,"exclude":"","include":""}` | Enable prune job |
|
| prune | object | `{"ageToPrune":"90d","enabled":false,"exclude":"","include":""}` | Enable prune job |
|
||||||
| rclone | object | `{"destination":{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"},"providerType":"Other","source":{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"}}` | rclone configuration |
|
| rclone | object | `{"destination":{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"},"providerType":"Other","source":{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"}}` | rclone configuration |
|
||||||
| rclone.destination | object | `{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"}` | Destination configuration |
|
| rclone.destination | object | `{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"}` | Destination configuration |
|
||||||
|
|||||||
@@ -62,16 +62,16 @@ DEST_ENDPOINT
|
|||||||
{{/*
|
{{/*
|
||||||
Create chart name and version as used by the chart label.
|
Create chart name and version as used by the chart label.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "secretRclone.chart" -}}
|
{{- define "rclone.chart" -}}
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Common labels
|
Common labels
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "secretRclone.labels" -}}
|
{{- define "rclone.labels" -}}
|
||||||
helm.sh/chart: {{ include "secretRclone.chart" $ }}
|
helm.sh/chart: {{ include "rclone.chart" $ }}
|
||||||
{{ include "secretRclone.selectorLabels" $ }}
|
{{ include "rclone.selectorLabels" $ }}
|
||||||
{{- if .Chart.AppVersion }}
|
{{- if .Chart.AppVersion }}
|
||||||
app.kubernetes.io/version: {{ .Chart.Version | quote }}
|
app.kubernetes.io/version: {{ .Chart.Version | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -84,7 +84,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|||||||
{{/*
|
{{/*
|
||||||
Selector labels
|
Selector labels
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "secretRclone.selectorLabels" -}}
|
{{- define "rclone.selectorLabels" -}}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -39,8 +39,9 @@ controllers:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.metrics.enabled }}
|
{{- if .Values.metrics.enabled }}
|
||||||
- --rc
|
- --rc
|
||||||
|
- --rc-addr=0.0.0.0:5572
|
||||||
- --rc-enable-metrics
|
- --rc-enable-metrics
|
||||||
- --metrics-addr=0.0.0.0:5572
|
- --rc-no-auth
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- --verbose
|
- --verbose
|
||||||
env:
|
env:
|
||||||
@@ -116,8 +117,9 @@ controllers:
|
|||||||
- --verbose
|
- --verbose
|
||||||
{{- if .Values.metrics.enabled }}
|
{{- if .Values.metrics.enabled }}
|
||||||
- --rc
|
- --rc
|
||||||
|
- --rc-addr=0.0.0.0:5573
|
||||||
- --rc-enable-metrics
|
- --rc-enable-metrics
|
||||||
- --metrics-addr=0.0.0.0:5572
|
- --rc-no-auth
|
||||||
{{- end }}
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: RCLONE_CONFIG_DEST_TYPE
|
- name: RCLONE_CONFIG_DEST_TYPE
|
||||||
@@ -154,9 +156,12 @@ service:
|
|||||||
main:
|
main:
|
||||||
controller: main
|
controller: main
|
||||||
ports:
|
ports:
|
||||||
metrics:
|
rc-sync:
|
||||||
port: 5572
|
port: 5572
|
||||||
targetPort: 5572
|
targetPort: 5572
|
||||||
|
rc-prune:
|
||||||
|
port: 5573
|
||||||
|
targetPort: 5573
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
main:
|
main:
|
||||||
selector:
|
selector:
|
||||||
@@ -165,9 +170,13 @@ serviceMonitor:
|
|||||||
app.kubernetes.io/instance: {{ .Release.Namespace }}
|
app.kubernetes.io/instance: {{ .Release.Namespace }}
|
||||||
serviceName: '{{ include "bjw-s.common.lib.chart.names.fullname" $ }}'
|
serviceName: '{{ include "bjw-s.common.lib.chart.names.fullname" $ }}'
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: metrics
|
- port: rc-sync
|
||||||
interval: 30s
|
interval: 10s
|
||||||
scrapeTimeout: 10s
|
scrapeTimeout: 5s
|
||||||
|
path: /metrics
|
||||||
|
- port: rc-prune
|
||||||
|
interval: 10s
|
||||||
|
scrapeTimeout: 5s
|
||||||
path: /metrics
|
path: /metrics
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ metadata:
|
|||||||
name: {{ include "rclone.sourceSecretName" . }}
|
name: {{ include "rclone.sourceSecretName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "secretRclone.labels" . | nindent 4 }}
|
{{- include "rclone.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/name: {{ include "rclone.sourceSecretName" . }}
|
app.kubernetes.io/name: {{ include "rclone.sourceSecretName" . }}
|
||||||
{{- with .Values.additionalLabels }}
|
{{- with .Values.additionalLabels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
@@ -40,7 +40,7 @@ metadata:
|
|||||||
name: {{ include "rclone.destinationSecretName" . }}
|
name: {{ include "rclone.destinationSecretName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "secretRclone.labels" . | nindent 4 }}
|
{{- include "rclone.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/name: {{ include "rclone.destinationSecretName" . }}
|
app.kubernetes.io/name: {{ include "rclone.destinationSecretName" . }}
|
||||||
{{- with .Values.additionalLabels }}
|
{{- with .Values.additionalLabels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
|
|||||||
32
charts/rclone-bucket/templates/prometheus-rule.yaml
Normal file
32
charts/rclone-bucket/templates/prometheus-rule.yaml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{{- if .Values.prometheusRule.enabled }}
|
||||||
|
---
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: PrometheusRule
|
||||||
|
metadata:
|
||||||
|
name: {{ include "rclone.name" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
{{- include "rclone.labels" . | nindent 4 }}
|
||||||
|
app.kubernetes.io/name: {{ include "rclone.name" . }}
|
||||||
|
{{- with .Values.additionalLabels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
groups:
|
||||||
|
- name: rclone.alerts
|
||||||
|
rules:
|
||||||
|
- alert: RclonePodFailed
|
||||||
|
expr: |
|
||||||
|
(kube_pod_container_status_last_terminated_exitcode > 0)
|
||||||
|
* on(pod, namespace) group_left(owner_name)
|
||||||
|
kube_pod_owner{owner_kind="Job", owner_name=~"rclone-.*"}
|
||||||
|
for: 1m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
annotations:
|
||||||
|
summary: "Rclone Pod failed in {{ `{{ $labels.namespace }}` }}"
|
||||||
|
description: |
|
||||||
|
A pod for the Rclone sync of s3 bucket '{{ .Values.rclone.source.bucketName }}' failed with exit code {{ `{{ $value }}` }}.
|
||||||
|
Job: {{ `{{ $labels.owner_name }}` }}
|
||||||
|
Namespace: {{ `{{ $labels.namespace }}` }}
|
||||||
|
{{- end }}
|
||||||
@@ -7,7 +7,7 @@ additionalLabels: {}
|
|||||||
# -- Default image
|
# -- Default image
|
||||||
image:
|
image:
|
||||||
repository: rclone/rclone
|
repository: rclone/rclone
|
||||||
tag: 1.74.0@sha256:d2e0e88359d0b2e67cfcd2c43d5405185eb8adfc207079df27c42da82c5207bc
|
tag: 1.74.1@sha256:eb8788b795f0009324e9572b0e2acb9b56885327c2746b07d67a9d3b893a6602
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
# -- CronJob configuration
|
# -- CronJob configuration
|
||||||
@@ -86,3 +86,7 @@ secret:
|
|||||||
# -- Metrics
|
# -- Metrics
|
||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
# -- Prometheus Rule
|
||||||
|
prometheusRule:
|
||||||
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user