Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkfella91 committed Jan 20, 2025
1 parent 29af119 commit d466567
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 39 deletions.
45 changes: 8 additions & 37 deletions kubernetes/main/apps/media/cross-seed/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ spec:
limits:
memory: 512Mi
securityContext:
privileged: false
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities: { drop: ["ALL"] }
Expand All @@ -66,7 +65,7 @@ spec:
runAsUser: 2000
runAsGroup: 2000
fsGroup: 2000
fsGroupChangePolicy: OnRootMismatch
fsGroupChangePolicy: Always
seccompProfile: { type: RuntimeDefault }

service:
Expand Down Expand Up @@ -99,6 +98,7 @@ spec:
persistence:
config:
type: emptyDir

config-file:
type: secret
name: "{{ .Release.Name }}-secret"
Expand All @@ -107,6 +107,7 @@ spec:
- path: /config/config.js
subPath: config.js
readOnly: true

media:
type: nfs
server: 192.168.91.40
Expand All @@ -127,41 +128,11 @@ spec:
name: vault-backend
target:
name: "{{ .Release.Name }}-secret"
template:
engineVersion: v2
data:
config.js: |
module.exports = {
action: "inject",
apiKey: "{{ "{{ .CROSS_SEED_API_KEY }}" }}",
delay: 30,
duplicateCategories: false,
flatLinking: false,
includeNonVideos: true,
includeSingleEpisodes: false,
linkCategory: "cross-seed",
linkDir: "/data/downloads/torrents/cross-seed",
linkType: "hardlink",
matchMode: "partial",
seasonFromEpisodes: 0.8,
outputDir: "/config",
port: 2468,
qbittorrentUrl: "https://{{ "{{ .QBITTORRENT_USERNAME }}" }}:{{ "{{ .QBITTORRENT_PASSWORD }}" }}@qbittorrent.darkfellanetwork.com",
radarr: ["https://radarr.darkfellanetwork.com/?apikey={{ "{{ .RADARR_API_KEY }}" }}"],
skipRecheck: true,
sonarr: ["https://sonarr.darkfellanetwork.com/?apikey={{ "{{ .SONARR_API_KEY }}" }}"],
useClientTorrents: true,
torznab: [
3, // IPT
1, // SA
2, // TL
].map(i => `https://prowlarr.darkfellanetwork.com/${i}/api?apikey={{ "{{ .PROWLARR_API_KEY }}" }}`),
};
dataFrom:
- extract:
key: secrets/api-keys
- extract:
key: secrets/qbittorrent
data:
- secretKey: &key config.js
remoteRef:
key: secrets/cross-seed
property: *key

configMaps:
loki-rules:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/main/apps/media/prowlarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
PROWLARR__AUTH__REQUIRED: DisabledForLocalAddresses
PROWLARR__LOG__DBENABLED: "False"
PROWLARR__LOG__LEVEL: info
PROWLARR__SERVER__BINDADDRESS : 127.0.0.1
PROWLARR__SERVER__BINDADDRESS: 127.0.0.1
PROWLARR__SERVER__PORT: 80
PROWLARR__UPDATE__BRANCH: develop
PROWLARR__AUTH__APIKEY:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ spec:
printf "cross-seed search returned with HTTP status code %s and path %s\n" \
"${status_code}" \
"${RELEASE_INFOHASH}" >&2
"${RELEASE_NAME}" >&2
sleep "${CROSS_SEED_SLEEP_INTERVAL}"
}
Expand Down

0 comments on commit d466567

Please sign in to comment.