Skip to content

Commit

Permalink
Version upgrades (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobroker authored Feb 12, 2022
1 parent 26f8578 commit af0b471
Show file tree
Hide file tree
Showing 20 changed files with 113 additions and 37 deletions.
3 changes: 3 additions & 0 deletions helm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ update-base: ## Update apps that use base chart
helm upgrade --install qbittorrent ./base/ --values qbittorrent.yaml
helm upgrade --install radarr ./base/ --values radarr.yaml
helm upgrade --install sonarr ./base/ --values sonarr.yaml
helm upgrade --install rsnapshot ./base/ --values rsnapshot.yaml
helm upgrade --install syncthing ./base/ --values syncthing.yaml
helm upgrade --install tautulli ./base/ --values tautulli.yaml
helm upgrade --install wakatime-exporter ./base/ --values wakatime-exporter.yaml
Expand All @@ -42,6 +43,8 @@ update-traefik: ## Update Traefik
cd traefik; \
helm dependency update; \
helm upgrade --install traefik .

update-traefik-sso: ## Update Traefik
cd traefik-sso; \
helm dependency update; \
helm upgrade --install traefik-sso .
Expand Down
3 changes: 3 additions & 0 deletions helm/base/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ spec:
app: {{ .Release.Name }}
name: {{ .Release.Name }}
spec:
{{- if .Values.nodeName }}
nodeName: {{ .Values.nodeName }}
{{- end }}
volumes:
{{- if .Values.volumes }}
{{- toYaml .Values.volumes | nindent 6}}
Expand Down
2 changes: 2 additions & 0 deletions helm/base/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ image:
tag:
pullPolicy: IfNotPresent

nodeName: kira-pc

services:
- type: LoadBalancer
suffix:
Expand Down
2 changes: 1 addition & 1 deletion helm/code-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicaCount: 1

image:
repository: linuxserver/code-server
tag: 3.12.0
tag: 4.0.1

services:
- type: LoadBalancer
Expand Down
2 changes: 1 addition & 1 deletion helm/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicaCount: 1

image:
repository: grafana/grafana
tag: 8.2.5
tag: 8.3.5

services:
- type: LoadBalancer
Expand Down
10 changes: 5 additions & 5 deletions helm/httpbin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ ingressRoutes:
web:
match: Host(`test.hobroker.me`)
port: 8080
#
# websecure:
# match: Host(`test.hobroker.me`)
# port: 8080
# middlewares:

websecure:
match: Host(`test.hobroker.me`)
port: 8080
middlewares:
# - name: traefik-sso-forward-auth
# - name: traefik-sso-rate-limit
2 changes: 1 addition & 1 deletion helm/jackett.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicaCount: 1

image:
repository: linuxserver/jackett
tag: 0.20.63
tag: 0.20.555

services:
- type: LoadBalancer
Expand Down
41 changes: 41 additions & 0 deletions helm/messenger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
replicaCount: 1

image:
repository: ghcr.io/hobroker/messenger
tag: latest
pullPolicy: Always

services:
- type: LoadBalancer
ports:
- port: 8182
containerPort: 3000

volumes:
- name: messenger-secret
secret:
secretName: messenger-secret

volumeMounts:
- name: messenger-secret
mountPath: "/usr/src/app/gcs-credentials.json"
subPath: gcs-credentials.json
readOnly: true

env:
- name: PORT
value: "3000"
- name: GCS_KEY_FILENAME
value: "./gcs-credentials.json"
- name: GCS_BUCKET_NAME
value: "selfhosted-messenger"
- name: TELEGRAM_TOKEN
valueFrom:
secretKeyRef:
name: messenger-telegram-secret
key: TELEGRAM_TOKEN
- name: TELEGRAM_CHAT_ID
valueFrom:
secretKeyRef:
name: messenger-telegram-secret
key: TELEGRAM_CHAT_ID
2 changes: 1 addition & 1 deletion helm/plex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicaCount: 1

image:
repository: linuxserver/plex
tag: 1.24.5
tag: 1.25.3

services:
- type: LoadBalancer
Expand Down
9 changes: 8 additions & 1 deletion helm/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicaCount: 1

image:
repository: prom/prometheus
tag: v2.31.1
tag: v2.33.3

services:
- type: LoadBalancer
Expand Down Expand Up @@ -53,3 +53,10 @@ configmaps:
static_configs:
- targets:
- wakatime-exporter:9212
- job_name: rclone
static_configs:
- targets:
- 192.168.29.242:5572
basic_auth:
username: 'admin'
password: 'admin'
2 changes: 1 addition & 1 deletion helm/qbittorrent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicaCount: 1

image:
repository: linuxserver/qbittorrent
tag: 20.04.1
tag: 4.4.0

services:
- type: LoadBalancer
Expand Down
2 changes: 1 addition & 1 deletion helm/radarr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicaCount: 1

image:
repository: linuxserver/radarr
tag: version-3.2.2.5080
tag: 4.0.4

services:
- type: LoadBalancer
Expand Down
48 changes: 31 additions & 17 deletions helm/rsnapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicaCount: 1

image:
repository: linuxserver/rsnapshot
tag: latest
tag: 1.4.3

volumes:
- name: rsnapshot-config
Expand Down Expand Up @@ -34,10 +34,18 @@ volumeMounts:
- name: rsnapshot-configmap
subPath: snap.sh
mountPath: "/config/snap.sh"
- name: rsnapshot-configmap
subPath: add-curl
mountPath: "/config/custom-cont-init.d/31-add-curl"

env:
- name: TZ
value: "Europe/Chisinau"
- name: MESSENGER_BASE_URL
value: "http://messenger:8182"

waitForServices:
- messenger

configmaps:
rsnapshot-configmap:
Expand Down Expand Up @@ -75,7 +83,7 @@ configmaps:
loglevel 3
logfile /config/rsnapshot.log
lockfile /var/run/rsnapshot.pid
link_dest 1
link_dest 0
backup /data/photos/camera/ wdata/
backup /data/photos/pictures wdata/
Expand All @@ -86,39 +94,45 @@ configmaps:
set -e
COUNTER_FILE="/config/.snap"
EVERY=6
# locals
_count=""
_count=$(curl -s "$MESSENGER_BASE_URL/gcs/rsnapshot/1/increment")
if test -f "$COUNTER_FILE"; then
_count=$(cat $COUNTER_FILE)
else
_count="1"
echo "$_count" > $COUNTER_FILE
fi
log() {
echo "> $1"
curl -s -G "$MESSENGER_BASE_URL/telegram/rsnapshot" --data-urlencode "data=running backup: $1"
}
echo "$_count"
echo "$(date) - $_count"
if [ "$(( _count % (EVERY*7*30*12) ))" -eq 0 ]; then
log yearly
rsnapshot yearly
fi
if [ "$(( _count % (EVERY*7*30) ))" -eq 0 ]; then
echo "> monthly"
log monthly
rsnapshot monthly
fi
if [ "$(( _count % (EVERY*7) ))" -eq 0 ]; then
echo "> weekly"
log weekly
rsnapshot weekly
fi
if [ "$(( _count % EVERY ))" -eq 0 ]; then
echo "> daily"
log daily
rsnapshot daily
fi
echo "> hourly"
log hourly
rsnapshot hourly
echo "done"
echo "$(date) - done"
echo $((_count+1)) > $COUNTER_FILE
add-curl: |-
#!/usr/bin/with-contenv bash
apk add curl
echo $MESSENGER_BASE_URL
curl -s -G "$MESSENGER_BASE_URL/telegram/rsnapshot" --data-urlencode "data=started"
2 changes: 1 addition & 1 deletion helm/sonarr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicaCount: 1

image:
repository: linuxserver/sonarr
tag: version-3.0.6.1342
tag: 3.0.6

services:
- type: LoadBalancer
Expand Down
2 changes: 1 addition & 1 deletion helm/syncthing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicaCount: 1

image:
repository: linuxserver/syncthing
tag: 1.18.4
tag: 1.19.0

services:
- type: LoadBalancer
Expand Down
2 changes: 1 addition & 1 deletion helm/tautulli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicaCount: 1

image:
repository: tautulli/tautulli
tag: v2.7.7
tag: v2.9.3

services:
- type: LoadBalancer
Expand Down
6 changes: 3 additions & 3 deletions helm/traefik/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: traefik
repository: https://helm.traefik.io/traefik
version: 10.3.6
digest: sha256:0ad98c36559bc1ab6007bc9db9238a9b7ab5050abce77e4da03b179b744dda3c
generated: "2021-10-03T13:58:20.548543+03:00"
version: 10.9.1
digest: sha256:732b0363832aee5e5fab919d302ad6d68af0cc3c107abc54e1696893904d5ed1
generated: "2022-01-26T15:20:08.656742+02:00"
2 changes: 1 addition & 1 deletion helm/traefik/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ version: 0.1.0
appVersion: "v2.29.2"
dependencies:
- name: traefik
version: 10.3.6
version: 10.9.1
repository: https://helm.traefik.io/traefik
6 changes: 6 additions & 0 deletions helm/traefik/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
traefik:
service:
enabled: true
type: LoadBalancer
externalIPs:
- 192.168.29.242

ports:
traefik:
expose: true
Expand Down
2 changes: 1 addition & 1 deletion helm/webdav.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
volumes:
- name: webdav-data
hostPath:
path: "/mnt/wdata"
path: "/storage"

volumeMounts:
- name: webdav-data
Expand Down

0 comments on commit af0b471

Please sign in to comment.