14 Commits

Author SHA1 Message Date
b45037fa19 Update Helm release postgres-cluster to v6
All checks were successful
lint-and-test-charts / lint-test (pull_request) Successful in 31s
2025-05-31 09:02:13 +00:00
31c904161e add check 2025-05-30 21:46:29 -05:00
011468cf65 add monitor 2025-05-30 21:42:18 -05:00
524766730f add env 2025-05-30 21:40:23 -05:00
6d2c50f3c6 fix commands 2025-05-30 21:34:33 -05:00
4759ce56ee change method 2025-05-30 21:30:21 -05:00
0bfd956a68 fix indent 2025-05-30 21:24:34 -05:00
9061e758e0 add power consumption 2025-05-30 21:22:45 -05:00
dcf662655a add shelly plug monitor 2025-05-30 21:16:40 -05:00
86212c1a44 add name for plug 2025-05-30 20:42:11 -05:00
19d84fd1d7 Merge pull request 'Update kube-prometheus-stack Docker tag to v72.8.0' (#526) from renovate/kube-prometheus-stack-72.x into main
Reviewed-on: #526
2025-05-30 23:04:16 +00:00
6ee6f70213 Merge pull request 'Update Helm release headlamp to v0.31.0' (#525) from renovate/headlamp-0.x into main
Reviewed-on: #525
2025-05-30 23:03:57 +00:00
8d1595fdbc Update kube-prometheus-stack Docker tag to v72.8.0
All checks were successful
lint-and-test-charts / lint-test (pull_request) Successful in 19s
2025-05-30 17:55:43 +00:00
5c852b31be Update Helm release headlamp to v0.31.0
All checks were successful
lint-and-test-charts / lint-test (pull_request) Successful in 30s
2025-05-30 17:55:08 +00:00
11 changed files with 166 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ maintainers:
- name: alexlebens - name: alexlebens
dependencies: dependencies:
- name: headlamp - name: headlamp
version: 0.30.1 version: 0.31.0
repository: https://kubernetes-sigs.github.io/headlamp/ repository: https://kubernetes-sigs.github.io/headlamp/
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/png/headlamp.png icon: https://cdn.jsdelivr.net/gh/selfhst/icons/png/headlamp.png
appVersion: 0.30.1 appVersion: 0.30.1

View File

@@ -111,6 +111,25 @@ spec:
resyncPeriod: 1h resyncPeriod: 1h
url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/system/node-short.json url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/system/node-short.json
---
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
name: grafana-dashboard-power-consumption
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: grafana-dashboard-power-consumption
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
instanceSelector:
matchLabels:
app: grafana-main
contentCacheDuration: 1h
folderUID: grafana-folder-system
resyncPeriod: 1h
url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/system/power-consumption.json
--- ---
apiVersion: grafana.integreatly.org/v1beta1 apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDashboard kind: GrafanaDashboard

View File

@@ -17,7 +17,7 @@ maintainers:
- name: alexlebens - name: alexlebens
dependencies: dependencies:
- name: kube-prometheus-stack - name: kube-prometheus-stack
version: 72.6.4 version: 72.8.0
repository: oci://ghcr.io/prometheus-community/charts repository: oci://ghcr.io/prometheus-community/charts
- name: app-template - name: app-template
alias: ntfy-alertmanager alias: ntfy-alertmanager

View File

@@ -133,6 +133,7 @@ kube-prometheus-stack:
- reloader - reloader
- rook-ceph - rook-ceph
- roundcube - roundcube
- shelly-plug
- slskd - slskd
- sonarr - sonarr
- sonarr-4k - sonarr-4k

View File

@@ -0,0 +1,20 @@
apiVersion: v2
name: shelly-plug
version: 1.0.0
description: Shelly Plug
keywords:
- shelly-plug
- metrics
home: https://wiki.alexlebens.dev/s/18b5575c-3a57-4515-89a0-b23d6df8dec4
sources:
- https://github.com/geerlingguy/shelly-plug-prometheus
- https://hub.docker.com/_/php
- https://github.com/bjw-s/helm-charts/blob/main/charts/other/app-template/values.yaml
maintainers:
- name: alexlebens
dependencies:
- name: app-template
alias: shelly-plug
repository: https://bjw-s-labs.github.io/helm-charts/
version: 4.0.1
appVersion: 1.0.0

View File

@@ -0,0 +1,28 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: shelly-plug-config-secret
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: shelly-plug-config-secret
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
secretStoreRef:
kind: ClusterSecretStore
name: vault
data:
- secretKey: SHELLY_HTTP_USERNAME
remoteRef:
conversionStrategy: Default
decodingStrategy: None
key: /shelly-plug/auth/it05sp
metadataPolicy: None
property: SHELLY_HTTP_USERNAME
- secretKey: SHELLY_HTTP_PASSWORD
remoteRef:
conversionStrategy: Default
decodingStrategy: None
key: /shelly-plug/auth/it05sp
metadataPolicy: None
property: SHELLY_HTTP_PASSWORD

View File

@@ -0,0 +1,19 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: shelly-plug
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: shelly-plug
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
selector:
matchLabels:
app.kubernetes.io/name: shelly-plug
app.kubernetes.io/instance: {{ .Release.Name }}
endpoints:
- port: metrics
interval: 30s
scrapeTimeout: 10s
path: /metrics

View File

@@ -0,0 +1,74 @@
shelly-plug:
controllers:
main:
type: deployment
replicas: 1
strategy: Recreate
revisionHistoryLimit: 3
initContainers:
init-fetch-repo:
securityContext:
runAsUser: 0
image:
repository: alpine/git
tag: latest
pullPolicy: IfNotPresent
command:
- /bin/sh
- -ec
- |
cd /var/www/html
if [ -d ".git" ]; then
echo "Git repository found. Pulling latest changes..."
git pull
else
echo "Not a git repository. Initializing ..."
git init
git remote add origin https://github.com/geerlingguy/shelly-plug-prometheus.git
git fetch origin
git checkout origin/master -ft
fi
resources:
requests:
cpu: 10m
memory: 128Mi
containers:
main:
image:
repository: php
tag: 8.2.28-apache-bookworm
pullPolicy: IfNotPresent
env:
- name: SHELLY_HOSTNAME
value: it05sp.alexlebens.net
- name: SHELLY_GENERATION
value: 2
envFrom:
- secretRef:
name: shelly-plug-config-secret
resources:
requests:
cpu: 10m
memory: 64Mi
service:
main:
controller: main
ports:
metrics:
port: 80
targetPort: 80
protocol: TCP
persistence:
script:
storageClass: ceph-block
accessMode: ReadWriteOnce
size: 1Gi
retain: true
advancedMounts:
main:
init-fetch-repo:
- path: /var/www/html
readOnly: false
main:
- path: /var/www/html
readOnly: false

View File

@@ -71,6 +71,7 @@ blocky:
it02ph IN A 10.232.1.85 ; Phillips Hue it02ph IN A 10.232.1.85 ; Phillips Hue
it03tb IN A 10.232.1.81 ; TubesZB ZigBee it03tb IN A 10.232.1.81 ; TubesZB ZigBee
it04tb IN A 10.232.1.82 ; TubesZB Z-Wave it04tb IN A 10.232.1.82 ; TubesZB Z-Wave
it05sp IN A 10.230.0.100 ; Shelly Plug
;; Common Names ;; Common Names

View File

@@ -46,6 +46,7 @@ customDNS:
it02ph IN A 10.232.1.85 ; Phillips Hue it02ph IN A 10.232.1.85 ; Phillips Hue
it03tb IN A 10.232.1.81 ; TubesZB ZigBee it03tb IN A 10.232.1.81 ; TubesZB ZigBee
it04tb IN A 10.232.1.82 ; TubesZB Z-Wave it04tb IN A 10.232.1.82 ; TubesZB Z-Wave
it05sp IN A 10.230.0.100 ; Shelly Plug
;; Common Names ;; Common Names

View File

@@ -46,6 +46,7 @@ customDNS:
it02ph IN A 10.232.1.85 ; Phillips Hue it02ph IN A 10.232.1.85 ; Phillips Hue
it03tb IN A 10.232.1.81 ; TubesZB ZigBee it03tb IN A 10.232.1.81 ; TubesZB ZigBee
it04tb IN A 10.232.1.82 ; TubesZB Z-Wave it04tb IN A 10.232.1.82 ; TubesZB Z-Wave
it05sp IN A 10.230.0.100 ; Shelly Plug
;; Common Names ;; Common Names