This commit is contained in:
ari committed 2024-07-09 11:58:37 -04:00
1 parent b0a2c44bca
commit e160b93e53
2 files changed
-61

No files matched your search

@@ -28,15 +28,6 @@ spec:
template:
engineVersion: v2
data:
{{ if $v.migrateDbFromSqllite.enabled }}
migration-sqllite-to-pg.sh: |-
pgloader \
--with "quote identifiers" \
--with "data only" \
--with "prefetch rows = 100" --with "batch size = 1MB" \
/data/{{$k}}.db \
'{{ `postgresql://{{.username}}:{{.password}}@{{.host}}:{{.port}}/` }}{{$k}}'
{{ end }}
config.xml: |-
<Config>
<LogLevel>info</LogLevel>
@@ -107,13 +98,7 @@ spec:
selector:
matchLabels:
app: {{$k}}
{{ if $v.migrateDbFromSqllite.enabled }}
replicas: 0
{{ else }}
replicas: 1
{{ end }}
revisionHistoryLimit: 2
updateStrategy:
rollingUpdate:
@@ -208,39 +193,4 @@ spec:
path: "{{ $.Values.global.nfs.additionalShares.torrents }}"
readOnly: false
{{ if $v.migrateDbFromSqllite.enabled }}
---
apiVersion: batch/v1
kind: Job
metadata:
name: "migrate-{{$k}}"
spec:
template:
metadata:
name: "migrate-{{$k}}"
spec:
restartPolicy: Never
backoffLimit: 1
volumes:
- name: data
persistentVolumeClaim:
claimName: "{{ $v.migrateDbFromSqllite.claimName }}"
- name: configxml
secret:
secretName: "{{$k}}-config"
containers:
- name: migration
image: "ghcr.io/roxedus/pgloader"
command:
- sh
- /configxml/migration-sqllite-to-pg.sh
volumeMounts:
- mountPath: /app
name: tffiles
volumeMounts:
- mountPath: "/data"
name: data
- name: configxml
mountPath: /configxml
{{ end }}
{{ end }}
-11
View File
@@ -45,9 +45,6 @@ arrs:
sonarr:
repo: lscr.io/linuxserver/sonarr
tag: "latest"
migrateDbFromSqllite:
enabled: false
claimName: config-sonarr-0
usePostgres: true
podResources:
limits:
@@ -68,9 +65,6 @@ arrs:
radarr:
repo: lscr.io/linuxserver/radarr
tag: "latest"
migrateDbFromSqllite:
enabled: false
claimName: config-radarr-0
usePostgres: true
podResources:
limits:
@@ -91,8 +85,6 @@ arrs:
readarr:
repo: lscr.io/linuxserver/readarr
tag: "develop-0.3.30.2576-ls117"
migrateDbFromSqllite:
enabled: false
usePostgres: true
podResources:
limits:
@@ -112,9 +104,6 @@ arrs:
prowlarr:
repo: lscr.io/linuxserver/prowlarr
tag: "1.13.3.4273-ls54"
migrateDbFromSqllite:
enabled: false
claimName: config-prowlarr-0
usePostgres: true
podResources:
limits: